added #define LDAP_DEPRECATED in order to use old ldap_init() function
[strongswan.git] / src / pluto / fetch.c
index e3e56d3..8f48152 100644 (file)
@@ -32,6 +32,9 @@
 #include <freeswan.h>
 
 #ifdef LIBLDAP
+#ifndef LDAP_DEPRECATED
+#define LDAP_DEPRECATED                1
+#endif
 #include <ldap.h>
 #endif