summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include/includes.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-10 16:48:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:50:03 -0500
commit4d1c5a023cf6680474bd8d8be73f576d155cfe81 (patch)
tree4d317119eca7f5f273d4027c1f08fe5665ddbd1e /source4/lib/ldb/include/includes.h
parent2b7d93265635f2e4cfc8b72f73a932d44821d371 (diff)
downloadsamba-4d1c5a023cf6680474bd8d8be73f576d155cfe81.tar.gz
samba-4d1c5a023cf6680474bd8d8be73f576d155cfe81.tar.bz2
samba-4d1c5a023cf6680474bd8d8be73f576d155cfe81.zip
r12829: fix ldb headers, to not include '<...>' files in .c files
this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later. metze (This used to be commit 380938e97f31c7860aed1e73cc0110c6e17b472e)
Diffstat (limited to 'source4/lib/ldb/include/includes.h')
-rw-r--r--source4/lib/ldb/include/includes.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/source4/lib/ldb/include/includes.h b/source4/lib/ldb/include/includes.h
index 4372d6b3f9..15eb18a5e8 100644
--- a/source4/lib/ldb/include/includes.h
+++ b/source4/lib/ldb/include/includes.h
@@ -1,7 +1,17 @@
+#ifndef _LDB_PRIVATE_INCLUDES_H_
+#define _LDB_PRIVATE_INCLUDES_H_
/*
a temporary includes file until I work on the ldb build system
*/
+#ifdef _SAMBA_BUILD_
+
+#include "system/filesys.h"
+#include "system/iconv.h"
+#include "system/time.h"
+
+#else /*_SAMBA_BUILD_*/
+
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
@@ -22,9 +32,16 @@
#include <stdint.h>
#endif
+#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
+#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
+
+#include "talloc.h"
+
+#endif /*_SAMBA_BUILD_*/
+
#include "ldb.h"
+#include "ldb_errors.h"
#include "ldb_private.h"
-#include "talloc.h"
+#include "dlinklist.h"
-#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
-#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
+#endif /*_LDB_PRIVATE_INCLUDES_H_*/