From: Arran Cudbard-Bell Date: Thu, 24 May 2018 15:57:41 +0000 (+0600) Subject: Fix more JSON related things X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6599d240fdcf3e307d2429f329fb55441d7fade5;p=thirdparty%2Ffreeradius-server.git Fix more JSON related things --- diff --git a/src/modules/rlm_couchbase/all.mk.in b/src/modules/rlm_couchbase/all.mk.in index f0172e9f3b5..261b97cb8a4 100644 --- a/src/modules/rlm_couchbase/all.mk.in +++ b/src/modules/rlm_couchbase/all.mk.in @@ -2,7 +2,7 @@ # might not always be available, and the TARGETNAME from the previous # target may stick around. TARGETNAME := --include $(top_builddir)/src/modules/rlm_json/libfreeradius-json.mk +-include $(top_builddir)/src/lib/json/all.mk TARGET := # Check the targetname defined by libfreeradius-json.mk diff --git a/src/modules/rlm_json/all.mk b/src/modules/rlm_json/all.mk index 354fcd28b3b..3a385b6d35e 100644 --- a/src/modules/rlm_json/all.mk +++ b/src/modules/rlm_json/all.mk @@ -2,7 +2,7 @@ # might not always be available, and the TARGETNAME from the previous # target may stick around. TARGETNAME := --include $(top_builddir)/src/modules/rlm_json/libfreeradius-json.mk +-include $(top_builddir)/src/lib/json/all.mk ifneq "${TARGETNAME}" "" TARGETNAME := rlm_json @@ -14,5 +14,5 @@ SOURCES := $(TARGETNAME).c # # Append SRC_CFLAGS and leave TGT_LDLIBS alone # -SRC_CFLAGS += -I$(top_builddir)/src/modules/rlm_json +SRC_CFLAGS += -I$(top_builddir)/src/lib/json/ TGT_PREREQS := libfreeradius-json.a diff --git a/src/modules/rlm_json/rlm_json.c b/src/modules/rlm_json/rlm_json.c index 3683aac85f6..7b3e3603667 100644 --- a/src/modules/rlm_json/rlm_json.c +++ b/src/modules/rlm_json/rlm_json.c @@ -31,9 +31,9 @@ RCSID("$Id$") #include #include #include +#include #include -#include "json.h" #ifndef HAVE_JSON # error "rlm_json should not be built unless json-c is available" diff --git a/src/modules/rlm_rest/all.mk.in b/src/modules/rlm_rest/all.mk.in index 902b5f903a4..16780c19f15 100644 --- a/src/modules/rlm_rest/all.mk.in +++ b/src/modules/rlm_rest/all.mk.in @@ -1,7 +1,7 @@ # Check to see if we have our internal library libfreeradius-json # which in turn depends on json-c. TARGETNAME := --include $(top_builddir)/src/modules/rlm_json/libfreeradius-json.mk +-include $(top_builddir)/src/lib/json/all.mk TARGET := # Add libfreeradius-json to the prereqs (so rlm_rest links to it)