the repository which powers this website
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 <[email protected]>
John Keeping 2015-08-13
parent f2e8ca8 · commit 43620cf
-rw-r--r--cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cache.c b/cache.c
index cd998127..57c89186 100644
--- a/cache.c
+++ b/cache.c
@@ -13,12 +13,12 @@
*
*/
-#ifdef HAVE_LINUX_SENDFILE
-#include <sys/sendfile.h>
-#endif
#include "cgit.h"
#include "cache.h"
#include "html.h"
+#ifdef HAVE_LINUX_SENDFILE
+#include <sys/sendfile.h>
+#endif
#define CACHE_BUFSIZE (1024 * 4)