asterisk-chan-dongle: allow user to send USSD commands directly
[feed/telephony.git] / net / kamailio-4.1.x / patches / 002-mod-jsonrpc-fix-library-name.patch
1 --- a/modules/jsonrpc-c/Makefile
2 +++ b/modules/jsonrpc-c/Makefile
3 @@ -11,12 +11,12 @@ LIBS=-lm
4  
5  BUILDER = $(shell which pkg-config)
6  ifeq ($(BUILDER),)
7 -       DEFS+=-I/usr/include/json -I$(LOCALBASE)/include/json \
8 +       DEFS+=-I/usr/include/json-c -I$(LOCALBASE)/include/json-c \
9         -I$(LOCALBASE)/include
10 -       LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -levent -ljson
11 +       LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -levent -ljson-c
12  else
13 -       DEFS+= $(shell pkg-config --cflags json)
14 -       LIBS+= $(shell pkg-config --libs json)
15 +       DEFS+= $(shell pkg-config --cflags json-c)
16 +       LIBS+= $(shell pkg-config --libs json-c)
17         DEFS+= $(shell pkg-config --cflags libevent)
18         LIBS+= $(shell pkg-config --libs libevent)
19  endif