diff options
author | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-28 14:20:11 +0000 |
---|---|---|
committer | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-28 14:20:11 +0000 |
commit | dde3f0f3c14d0d100be77dfd4986b796e5fef0e0 (patch) | |
tree | 9d566dbaefd75b1dc00584169c5cef700e66bcf6 | |
parent | d00e7445a07ed71528368bcfdaddc13f485cea38 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@159734 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | res/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/Makefile b/res/Makefile index 8084858ee..3129180e5 100644 --- a/res/Makefile +++ b/res/Makefile @@ -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 |