bc5dde
diff -up bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c.old-api bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c
bc5dde
--- bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c.old-api	2008-11-24 13:28:13.000000000 +0100
bc5dde
+++ bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c	2008-11-24 13:28:23.000000000 +0100
bc5dde
@@ -25,6 +25,7 @@
bc5dde
 /* Using LDAPv3 by default, change this if you want v2 */
bc5dde
 #ifndef LDAPDB_LDAP_VERSION
bc5dde
 #define LDAPDB_LDAP_VERSION 3
bc5dde
+#define LDAP_DEPRECATED 1
bc5dde
 #endif
bc5dde
 
bc5dde
 #include <config.h>
bc5dde
diff -up bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c.old-api bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c
bc5dde
--- bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c.old-api	2008-11-24 13:29:05.000000000 +0100
bc5dde
+++ bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c	2008-11-24 13:29:14.000000000 +0100
bc5dde
@@ -13,6 +13,8 @@
bc5dde
  * ditched dNSDomain2 schema support. Version 0.3-ALPHA
bc5dde
  */
bc5dde
 
bc5dde
+#define LDAP_DEPRECATED 1
bc5dde
+
bc5dde
 #include <errno.h>
bc5dde
 #include <string.h>
bc5dde
 #include <stdlib.h>