From 4d1c5a023cf6680474bd8d8be73f576d155cfe81 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 10 Jan 2006 16:48:32 +0000 Subject: 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) --- source4/lib/ldb/include/includes.h | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'source4/lib/ldb/include') 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 #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_*/ -- cgit