]> git.cameronkatri.com Git - cgit.git/commitdiff
cache.c: fix header order
authorJohn Keeping <john@keeping.me.uk>
Thu, 13 Aug 2015 11:14:17 +0000 (12:14 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 13 Aug 2015 13:37:42 +0000 (15:37 +0200)
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>
cache.c

diff --git a/cache.c b/cache.c
index cd998127cc23e361cd9f53d9d988754fa5faa93d..57c891864ffb8b70447c6db5fd8366f662aadd39 100644 (file)
--- a/cache.c
+++ b/cache.c
  *
  */
 
-#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)