[asterisk-commits] mvanbaak: trunk r159734 - /trunk/res/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 28 08:20:12 CST 2008


Author: mvanbaak
Date: Fri Nov 28 08:20:11 2008
New Revision: 159734

URL: http://svn.digium.com/view/asterisk?view=rev&rev=159734
Log:
Make res_config_ldap compile with the official OpenLDAP 2.3.X versions.
They removed the LDAP_DEPRECATED define from their source and since we are using a couple
of deprecated function calls we should define it with a CFLAG.

Tested by me on OpenBSD 4.4 and snuff-home on Linux to make sure everything keeps compiling.
It shouldn't break, we only define the LDAP_DEPRECATED with this which is what 
all 2.2.X and older versions of OpenLDAP did in their own tree.

Modified:
    trunk/res/Makefile

Modified: trunk/res/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/res/Makefile?view=diff&rev=159734&r1=159733&r2=159734
==============================================================================
--- trunk/res/Makefile (original)
+++ trunk/res/Makefile Fri Nov 28 08:20:11 2008
@@ -29,6 +29,8 @@
   res_agi.so_LIBS:= -lres_speech.so
 endif
 
+res_config_ldap.o: ASTCFLAGS+=-DLDAP_DEPRECATED
+
 ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
 ael/ael_lex.o: ASTCFLAGS+=-I. -Iael -Wno-unused
 




More information about the asterisk-commits mailing list