added #define LDAP_DEPRECATED in order to use old ldap_init() function
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 24 May 2007 12:09:48 +0000 (12:09 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 24 May 2007 12:09:48 +0000 (12:09 -0000)
src/libstrongswan/utils/fetcher.c
src/pluto/fetch.c

index 6165cc1..7a06999 100644 (file)
@@ -25,6 +25,9 @@
 #endif /* LIBCURL */
 
 #ifdef LIBLDAP
+#ifndef LDAP_DEPRECATED
+#define LDAP_DEPRECATED                1
+#endif
 #include <ldap.h>
 #endif /* LIBLDAP */
 
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