r18031: Merge my replace fixes:
[ambi/samba-autobuild/.git] / source4 / lib / ldb / include / includes.h
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 */
6
7 #ifdef _SAMBA_BUILD_
8
9 /* tell ldb we have the internal ldap code */
10 #define HAVE_ILDAP 1
11
12 #else
13 #include "config.h"
14 #endif /*_SAMBA_BUILD_*/
15
16 #ifndef _GNU_SOURCE
17 #define _GNU_SOURCE
18 #endif
19 #ifdef HAVE_REPLACE_H
20 #include "replace.h"
21 #endif
22 #include <stdio.h>
23 #include <string.h>
24 #include <stdlib.h>
25 #include <errno.h>
26 #include <ctype.h>
27 #include <fcntl.h>
28 #include <stdarg.h>
29 #include <signal.h>
30 #include <unistd.h>
31 #include <fnmatch.h>
32 #include <sys/time.h>
33 #include <sys/types.h>
34 #include <sys/stat.h>
35 #include <time.h>
36 #ifdef HAVE_STDINT_H
37 #include <stdint.h>
38 #endif
39 #ifdef HAVE_INTTYPES_H
40 #include <inttypes.h>
41 #endif
42 #ifdef HAVE_DLFCN_H
43 #include <dlfcn.h>
44 #endif
45
46 #define discard_const(ptr) ((void *)((intptr_t)(ptr)))
47 #define discard_const_p(type, ptr) ((type *)discard_const(ptr))
48 #ifndef HAVE_COMPARISON_FN_T
49 typedef int (*comparison_fn_t)(const void *, const void *);
50 #endif
51
52 #include "talloc.h"
53
54 #include "ldb.h"
55 #include "ldb_errors.h"
56 #include "ldb_private.h"
57 #include "dlinklist.h"
58
59 #endif /*_LDB_PRIVATE_INCLUDES_H_*/