aboutsummaryrefslogtreecommitdiffstats
path: root/cache.c
diff options
context:
space:
mode:
authorJohn Keeping2015-08-13 12:14:17 +0100
committerJason A. Donenfeld2015-08-13 15:37:42 +0200
commit43620cf6aa62decaf319d00c28297e3b87a4da78 (patch)
tree0fcee9ce861ef2a7460b20b2ec5d56e9cafa7e7d /cache.c
parentf2e8ca806d43acbfd9bef53f1a3ee5ce95ff32e7 (diff)
downloadcgit-43620cf6aa62decaf319d00c28297e3b87a4da78.tar.gz
cgit-43620cf6aa62decaf319d00c28297e3b87a4da78.tar.bz2
cgit-43620cf6aa62decaf319d00c28297e3b87a4da78.zip
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>
Diffstat (limited to 'cache.c')
-rw-r--r--cache.c6
1 files 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 @@
13 * 13 *
14 */ 14 */
15 15
16#ifdef HAVE_LINUX_SENDFILE
17#include <sys/sendfile.h>
18#endif
19#include "cgit.h" 16#include "cgit.h"
20#include "cache.h" 17#include "cache.h"
21#include "html.h" 18#include "html.h"
19#ifdef HAVE_LINUX_SENDFILE
20#include <sys/sendfile.h>
21#endif
22 22
23#define CACHE_BUFSIZE (1024 * 4) 23#define CACHE_BUFSIZE (1024 * 4)
24 24