From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Thu, 13 Aug 2015 12:14:17 +0100 Subject: [PATCH 5/8] cache.c: fix header order In-Reply-To: References: Message-ID: <46ee2571205f7e021a83bc309fad1334ff585a10.1439464215.git.john@keeping.me.uk> 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 --- cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.5.0.466.g9af26fa