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
2 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
||||||
OSARCH=$(shell uname -s)
|
OSARCH=$(shell uname -s)
|
||||||
|
|
||||||
USE_MYSQL_FRIENDS=0
|
USE_MYSQL_FRIENDS=0
|
||||||
|
USE_SIP_MYSQL_FRIENDS=0
|
||||||
|
|
||||||
CHANNEL_LIBS=chan_modem.so chan_iax.so chan_sip.so \
|
CHANNEL_LIBS=chan_modem.so chan_iax.so chan_sip.so \
|
||||||
chan_modem_aopen.so \
|
chan_modem_aopen.so \
|
||||||
|
@ -54,6 +55,9 @@ CFLAGS+=-fPIC
|
||||||
ifeq ($(USE_MYSQL_FRIENDS),1)
|
ifeq ($(USE_MYSQL_FRIENDS),1)
|
||||||
CFLAGS+=-DMYSQL_FRIENDS
|
CFLAGS+=-DMYSQL_FRIENDS
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(USE_SIP_MYSQL_FRIENDS),1)
|
||||||
|
CFLAGS+=-DSIP_MYSQL_FRIENDS
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS+=#-DVOFRDUMPER
|
CFLAGS+=#-DVOFRDUMPER
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,8 @@
|
||||||
#include <netinet/in_systm.h>
|
#include <netinet/in_systm.h>
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
|
|
||||||
#ifdef MYSQL_FRIENDS
|
#ifdef SIP_MYSQL_FRIENDS
|
||||||
|
#define MYSQL_FRIENDS
|
||||||
#include <mysql/mysql.h>
|
#include <mysql/mysql.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue