r18115: comparison_fn_t is defined in libreplace now
[Samba/aatanasov.git] / source4 / lib / ldb / include / includes.h
blobf761d358c96dbcb91c8e85f8cef228c7c9812ac1
1 #ifndef _LDB_PRIVATE_INCLUDES_H_
2 #define _LDB_PRIVATE_INCLUDES_H_
3 /*
4 a temporary includes file until I work on the ldb build system
5 */
7 #ifdef _SAMBA_BUILD_
8 /* tell ldb we have the internal ldap code */
9 #define HAVE_ILDAP 1
10 #endif
12 #ifndef _GNU_SOURCE
13 #define _GNU_SOURCE
14 #endif
15 #include "replace.h"
16 #include <stdio.h>
17 #include <string.h>
18 #include <stdlib.h>
19 #include <errno.h>
20 #include <ctype.h>
21 #include <fcntl.h>
22 #include <stdarg.h>
23 #include <signal.h>
24 #include <unistd.h>
25 #include <fnmatch.h>
26 #include <sys/time.h>
27 #include <sys/types.h>
28 #include <sys/stat.h>
29 #include <time.h>
30 #ifdef HAVE_STDINT_H
31 #include <stdint.h>
32 #endif
33 #ifdef HAVE_INTTYPES_H
34 #include <inttypes.h>
35 #endif
36 #ifdef HAVE_DLFCN_H
37 #include <dlfcn.h>
38 #endif
40 #define discard_const(ptr) ((void *)((intptr_t)(ptr)))
41 #define discard_const_p(type, ptr) ((type *)discard_const(ptr))
43 #include "talloc.h"
45 #include "ldb.h"
46 #include "ldb_errors.h"
47 #include "ldb_private.h"
48 #include "dlinklist.h"
50 #endif /*_LDB_PRIVATE_INCLUDES_H_*/