$OpenBSD: patch-modules_s_ldap_Makefile,v 1.1 2012/09/15 12:16:18 sthen Exp $
--- modules_s/ldap/Makefile.orig	Sat Jul 28 13:43:41 2012
+++ modules_s/ldap/Makefile	Sat Jul 28 13:43:58 2012
@@ -8,7 +8,7 @@ NAME=ldap.so
 
 #DEFS += -DLD_TEST
 
-DEFS += -Wall -DOPENLDAP23
+DEFS += -Wall -DOPENLDAP23 -DLDAP_DEPRECATED
 
 # Uncomment this if you have a recent version of libldap with
 # LD_SCOPE_CHILDREN defined
