all repos — cgit @ 43620cf6aa62decaf319d00c28297e3b87a4da78

a hyperfast web frontend for git written in c

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>
John Keeping john@keeping.me.uk
Thu, 13 Aug 2015 12:14:17 +0100
commit

43620cf6aa62decaf319d00c28297e3b87a4da78

parent

f2e8ca806d43acbfd9bef53f1a3ee5ce95ff32e7

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M cache.ccache.c

@@ -13,12 +13,12 @@ * key.

* */ +#include "cgit.h" +#include "cache.h" +#include "html.h" #ifdef HAVE_LINUX_SENDFILE #include <sys/sendfile.h> #endif -#include "cgit.h" -#include "cache.h" -#include "html.h" #define CACHE_BUFSIZE (1024 * 4)