]> granicus.if.org Git - sudo/commitdiff
Define LDAP_DEPRECATED until we start using ldap_get_values_len()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Nov 2005 23:56:52 +0000 (23:56 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Nov 2005 23:56:52 +0000 (23:56 +0000)
configure
configure.in

index 92974ede81297d380b04ddeeed95992a91f5e295..2da6e8a818dc142eb8dd3b694bcc6f10cd3b380f 100755 (executable)
--- a/configure
+++ b/configure
@@ -21315,6 +21315,8 @@ done
     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
     LIBS="$_LIBS"
     LDFLAGS="$_LDFLAGS"
+    # XXX - OpenLDAP has deprecated ldap_get_values()
+    CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
 fi
 
 if test -n "$blibpath"; then
index 3eac1dca23564226af9fccf8e30594206584731e..3d010a5f31865938f9a16d9675503e8c7324a7f4 100644 (file)
@@ -2237,6 +2237,8 @@ if test -n "$with_ldap"; then
     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
     LIBS="$_LIBS"
     LDFLAGS="$_LDFLAGS"
+    # XXX - OpenLDAP has deprecated ldap_get_values()
+    CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
 fi
 
 dnl