From 0f9e4ba23bb6296d8bb8010f70d868fd08db9c54 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 7 Aug 2011 23:14:33 +0000 Subject: Sun Aug 7 23:14:33 UTC 2011 --- core/libsasl/0019_ldap_deprecated.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 core/libsasl/0019_ldap_deprecated.patch (limited to 'core/libsasl/0019_ldap_deprecated.patch') diff --git a/core/libsasl/0019_ldap_deprecated.patch b/core/libsasl/0019_ldap_deprecated.patch new file mode 100644 index 000000000..8825256cb --- /dev/null +++ b/core/libsasl/0019_ldap_deprecated.patch @@ -0,0 +1,22 @@ +0019_ldap_deprecated.dpatch by dann frazier + +The function ldap_get_values, used in saslauthd/lak.c, is deprecated. +Therefore, its prototype is not included by default when compiling +against the ldap.h headers. As a result, the compiler cannot know the +return type of the function at compile time, and will implicitly +convert to a pointer. This has implications on 64-bit systems. +This patch sets the deprecation mode on, so that the function prototype +gets included when compiling. +(Description by Fabian Fagerholm ) + +diff -urNad trunk~/saslauthd/lak.c trunk/saslauthd/lak.c +--- trunk~/saslauthd/lak.c 2006-06-04 12:26:20.000000000 +0300 ++++ trunk/saslauthd/lak.c 2008-02-15 14:32:11.000000000 +0200 +@@ -55,6 +55,7 @@ + #include + #endif + ++#define LDAP_DEPRECATED 1 + #include + #include + #include -- cgit v1.2.3-54-g00ecf