[PATCH] cyrus-imapd: define LDAP_DEPRECATED, fixing a few warnings when building with OpenLDAP 2.3

Tomas Janousek tjanouse at redhat.com
Mon Oct 1 09:37:28 EDT 2007

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 <tjanouse at redhat.com>

--- 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 */
 #include <ldap.h>
 #include <lber.h>

Tomas Janousek, SW Engineer, Red Hat, Inc.

More information about the Cyrus-devel mailing list