summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-11-22 17:15:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:31 -0500
commitac331c48db29afeb712bb1a1edf739354082ad7f (patch)
treeae2b7160314c184b0a4f832000eb33f1d9525bcf /source3/include/includes.h
parent056f06915e9c667393046a674581754d8a581d29 (diff)
downloadsamba-ac331c48db29afeb712bb1a1edf739354082ad7f.tar.gz
samba-ac331c48db29afeb712bb1a1edf739354082ad7f.tar.bz2
samba-ac331c48db29afeb712bb1a1edf739354082ad7f.zip
r11863: BUG 3196: patch from Alex Deiter <tiamat@komi.mts.ru> to compile against the Sun LDAP client libs. But not for AD support; just ldap support
(This used to be commit a33e78acedb37df47905d326411e017794721250)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 626124523e..cde199eed8 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -458,10 +458,19 @@
#if HAVE_LBER_H
#include <lber.h>
+#ifndef LBER_USE_DER
+#define LBER_USE_DER 0x01
+#endif
#endif
#if HAVE_LDAP_H
#include <ldap.h>
+#ifndef LDAP_CONST
+#define LDAP_CONST const
+#endif
+#ifndef LDAP_OPT_SUCCESS
+#define LDAP_OPT_SUCCESS 0
+#endif
#else
#undef HAVE_LDAP
#endif