diff options
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r-- | source4/lib/ldb/include/includes.h | 23 |
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_*/ |