summaryrefslogtreecommitdiffstats
path: root/source/include/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/include/includes.h')
-rw-r--r--source/include/includes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h
index 626124523e5..cde199eed8b 100644
--- a/source/include/includes.h
+++ b/source/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