mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 16:38:42 +00:00
cache.c: fix header order
git-compat-util.h may define values that affect how system headers are interpreted, so move sys/sendfile.h after cgit.h (which includes git-compat-util.h). Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
f2e8ca806d
commit
43620cf6aa
6
cache.c
6
cache.c
@ -13,12 +13,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_LINUX_SENDFILE
|
|
||||||
#include <sys/sendfile.h>
|
|
||||||
#endif
|
|
||||||
#include "cgit.h"
|
#include "cgit.h"
|
||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
#include "html.h"
|
#include "html.h"
|
||||||
|
#ifdef HAVE_LINUX_SENDFILE
|
||||||
|
#include <sys/sendfile.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CACHE_BUFSIZE (1024 * 4)
|
#define CACHE_BUFSIZE (1024 * 4)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user