Skip to content
Snippets Groups Projects
Commit 445c5296 authored by Michiel van Baak's avatar Michiel van Baak
Browse files

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.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 3d4f86f6
No related merge requests found
......@@ -29,6 +29,8 @@ ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment