summaryrefslogtreecommitdiff
path: root/xcache
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2013-09-22 12:54:12 +0000
committerXuefer <xuefer@gmail.com>2013-09-22 12:54:12 +0000
commit179c9cd83472a73514bf9ac1e9a5f33f6ac32b91 (patch)
tree1ce21699c34b6ae91f2cc5f5810b69b71d0b8d77 /xcache
parentd09d60607ef971c9839cd4d2be156fc80ab3e170 (diff)
downloadxcache-179c9cd83472a73514bf9ac1e9a5f33f6ac32b91.tar.gz
xcache-179c9cd83472a73514bf9ac1e9a5f33f6ac32b91.zip
use config.h correctly wherever needed
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1378 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'xcache')
-rw-r--r--xcache/xc_allocator.c1
-rw-r--r--xcache/xc_malloc.c3
-rw-r--r--xcache/xc_shm.c15
3 files changed, 8 insertions, 11 deletions
diff --git a/xcache/xc_allocator.c b/xcache/xc_allocator.c
index d7f53a6..3a6226a 100644
--- a/xcache/xc_allocator.c
+++ b/xcache/xc_allocator.c
@@ -1,3 +1,4 @@
+#include "xcache.h"
#include "xc_allocator.h"
#include <string.h>
#include <stdio.h>
diff --git a/xcache/xc_malloc.c b/xcache/xc_malloc.c
index b2ed5ba..5ff521c 100644
--- a/xcache/xc_malloc.c
+++ b/xcache/xc_malloc.c
@@ -4,9 +4,6 @@
#include <stdio.h>
#include <string.h>
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "xc_shm.h"
#include "xc_allocator.h"
#ifndef TEST
diff --git a/xcache/xc_shm.c b/xcache/xc_shm.c
index 2d6e52a..190e80e 100644
--- a/xcache/xc_shm.c
+++ b/xcache/xc_shm.c
@@ -1,19 +1,18 @@
#ifdef TEST
-#include <limits.h>
-#include <stdio.h>
+# ifdef HAVE_CONFIG_H
+# include <config.h>
+# endif
+# include <limits.h>
+# include <stdio.h>
#else
-#include <php.h>
+# include "xcache.h"
#endif
+#include "xc_shm.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-#include "xc_shm.h"
-
struct _xc_shm_scheme_t {
const char *name;
const xc_shm_handlers_t *handlers;