Fix mysql friends by type
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
3f5277d57b
commit
c1c704c042
|
@ -14,6 +14,7 @@
|
|||
OSARCH=$(shell uname -s)
|
||||
|
||||
USE_MYSQL_FRIENDS=0
|
||||
USE_SIP_MYSQL_FRIENDS=0
|
||||
|
||||
CHANNEL_LIBS=chan_modem.so chan_iax.so chan_sip.so \
|
||||
chan_modem_aopen.so \
|
||||
|
@ -54,6 +55,9 @@ CFLAGS+=-fPIC
|
|||
ifeq ($(USE_MYSQL_FRIENDS),1)
|
||||
CFLAGS+=-DMYSQL_FRIENDS
|
||||
endif
|
||||
ifeq ($(USE_SIP_MYSQL_FRIENDS),1)
|
||||
CFLAGS+=-DSIP_MYSQL_FRIENDS
|
||||
endif
|
||||
|
||||
CFLAGS+=#-DVOFRDUMPER
|
||||
|
||||
|
|
|
@ -54,7 +54,8 @@
|
|||
#include <netinet/in_systm.h>
|
||||
#include <netinet/ip.h>
|
||||
|
||||
#ifdef MYSQL_FRIENDS
|
||||
#ifdef SIP_MYSQL_FRIENDS
|
||||
#define MYSQL_FRIENDS
|
||||
#include <mysql/mysql.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue