summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/include/includes.h')
-rw-r--r--source4/lib/ldb/include/includes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/include/includes.h b/source4/lib/ldb/include/includes.h
index 4926e1524a..66b984a87d 100644
--- a/source4/lib/ldb/include/includes.h
+++ b/source4/lib/ldb/include/includes.h
@@ -18,15 +18,15 @@
#include <fnmatch.h>
#include <sys/time.h>
#include <time.h>
+#include <stdint.h>
#include "ldb.h"
#include "ldb_private.h"
+#include "talloc.h"
-#ifdef HAVE_INTPTR_T
+#if defined(__intptr_t_defined) || defined(HAVE_INTPTR_T)
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#else
#define discard_const(ptr) ((void *)(ptr))
#endif
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
-
-