A few functions used in ptclient/ldap.c have been deprecated in OpenLDAP 2.3
and are no longer declared unless LDAP_DEPRECATED is defined. This causes a
few warnings and two conversions from int to pointer. This patch fixes it.

Signed-off-by: Tomas Janousek <[EMAIL PROTECTED]>
---

--- cyrus-imapd-2.3.9/ptclient/ldap.c.implicitdecl      2007-09-18 
15:49:48.000000000 +0200
+++ cyrus-imapd-2.3.9/ptclient/ldap.c   2007-09-18 15:40:19.000000000 +0200
@@ -61,6 +61,9 @@
 #include <sys/un.h>
 #include <sys/uio.h>
 
+/* Functions like ldap_bind() have been deprecated in OpenLDAP 2.3 */
+#define LDAP_DEPRECATED 1
+
 #include <ldap.h>
 #include <lber.h>
 

-- 
Tomas Janousek, SW Engineer, Red Hat, Inc.

Reply via email to