summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-02 01:42:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:13 -0500
commit26c6b4c70bd85d8030a96651f2a255a4d48fcda1 (patch)
tree9d043fc9b4b7ed836066487d9ca354a78adc0136 /source4/lib/ldb
parent71107c0eb723545ef5807d58af2ab2f5d99d7206 (diff)
downloadsamba-26c6b4c70bd85d8030a96651f2a255a4d48fcda1.tar.gz
samba-26c6b4c70bd85d8030a96651f2a255a4d48fcda1.tar.bz2
samba-26c6b4c70bd85d8030a96651f2a255a4d48fcda1.zip
r3449: more include file reduction
the ldb part isn't ideal, I will have to think of a better solution (This used to be commit 6b1f86aea8427a8e957b1aeb0ec2f507297f07cb)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_ldif.c1
-rw-r--r--source4/lib/ldb/common/ldb_parse.c1
-rw-r--r--source4/lib/ldb/common/ldb_utf8.c1
-rw-r--r--source4/lib/ldb/include/includes.h8
4 files changed, 11 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_ldif.c b/source4/lib/ldb/common/ldb_ldif.c
index c693d211a9..01706304d9 100644
--- a/source4/lib/ldb/common/ldb_ldif.c
+++ b/source4/lib/ldb/common/ldb_ldif.c
@@ -37,6 +37,7 @@
*/
#include "includes.h"
+#include <ctype.h>
/*
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index b037284a24..feec8fc0f2 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -43,6 +43,7 @@
#include "includes.h"
#include "ldb/include/ldb_parse.h"
+#include <ctype.h>
/*
diff --git a/source4/lib/ldb/common/ldb_utf8.c b/source4/lib/ldb/common/ldb_utf8.c
index 1e467d23af..e92d318bae 100644
--- a/source4/lib/ldb/common/ldb_utf8.c
+++ b/source4/lib/ldb/common/ldb_utf8.c
@@ -33,6 +33,7 @@
*/
#include "includes.h"
+#include <ctype.h>
/*
TODO:
diff --git a/source4/lib/ldb/include/includes.h b/source4/lib/ldb/include/includes.h
index 1d3ac2a50e..44ff672266 100644
--- a/source4/lib/ldb/include/includes.h
+++ b/source4/lib/ldb/include/includes.h
@@ -28,3 +28,11 @@
#include "tdb.h"
#include "proto.h"
+#ifdef 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))
+
+