From: John Keeping Date: Thu, 13 Aug 2015 11:14:17 +0000 (+0100) Subject: cache.c: fix header order X-Git-Tag: v0.12~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43620cf6aa62decaf319d00c28297e3b87a4da78;p=cgit 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 --- diff --git a/cache.c b/cache.c index cd99812..57c8918 100644 --- a/cache.c +++ b/cache.c @@ -13,12 +13,12 @@ * */ -#ifdef HAVE_LINUX_SENDFILE -#include -#endif #include "cgit.h" #include "cache.h" #include "html.h" +#ifdef HAVE_LINUX_SENDFILE +#include +#endif #define CACHE_BUFSIZE (1024 * 4)