summaryrefslogtreecommitdiff
path: root/src/stat_cache.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-10-11 14:31:42 +0000
committerStefan Bühler <stbuehler@web.de>2009-10-11 14:31:42 +0000
commit22e8b456a9800efb92bd0f90a2e1b816d3b4bb07 (patch)
treee306fb18c0c0d4bd3177c4db7a736a8d1d605f40 /src/stat_cache.c
parentd69683ddb51df40bd175d525f8c53dd4abc2e6e0 (diff)
downloadlighttpd1.4-22e8b456a9800efb92bd0f90a2e1b816d3b4bb07.tar.gz
lighttpd1.4-22e8b456a9800efb92bd0f90a2e1b816d3b4bb07.zip
Fix header inclusion order, always include "config.h" before any system header
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2624 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/stat_cache.c')
-rw-r--r--src/stat_cache.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/stat_cache.c b/src/stat_cache.c
index 6b2a1daf..c1afade6 100644
--- a/src/stat_cache.c
+++ b/src/stat_cache.c
@@ -1,4 +1,7 @@
-#define _GNU_SOURCE
+#include "log.h"
+#include "stat_cache.h"
+#include "fdevent.h"
+#include "etag.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -11,13 +14,8 @@
#include <fcntl.h>
#include <assert.h>
-#include "log.h"
-#include "stat_cache.h"
-#include "fdevent.h"
-#include "etag.h"
-
#ifdef HAVE_ATTR_ATTRIBUTES_H
-#include <attr/attributes.h>
+# include <attr/attributes.h>
#endif
#ifdef HAVE_FAM_H
@@ -36,7 +34,7 @@
#endif
#ifndef HAVE_LSTAT
-#define lstat stat
+# define lstat stat
#endif
#if 0