From 765b530f2cd79d66221ba9c3d33fe94040d6748c Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Tue, 27 Jun 2006 13:39:01 +0000 Subject: Define LDAP_DEPRECATED in ldap.c to get the old functions that Exim uses included in ldap.h in OpenLDAP. --- src/src/lookups/ldap.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/src/lookups/ldap.c b/src/src/lookups/ldap.c index 313640e9e..26fdb2ffc 100644 --- a/src/src/lookups/ldap.c +++ b/src/src/lookups/ldap.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/lookups/ldap.c,v 1.10 2006/02/07 11:19:01 ph10 Exp $ */ +/* $Cambridge: exim/src/src/lookups/ldap.c,v 1.11 2006/06/27 13:39:01 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -31,7 +31,12 @@ static void dummy(int x) { dummy(x-1); } #else -/* Include LDAP headers */ +/* Include LDAP headers. The code below uses some "old" LDAP interfaces that +are deprecated in OpenLDAP. I don't know their status in other LDAP +implementations. LDAP_DEPRECATED causes their prototypes to be defined in +ldap.h. */ + +#define LDAP_DEPRECATED 1 #include #include -- cgit v1.2.3