]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
HAVE_JSON set in config.h
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 31 Jul 2015 20:12:16 +0000 (16:12 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 31 Jul 2015 20:12:22 +0000 (16:12 -0400)
src/modules/rlm_rest/rest.h

index eee846e8ec04e172189bf3798b639a716260739a..2ac3798c51136d66d9fe240ed68c781b29a40466 100644 (file)
@@ -28,17 +28,15 @@ RCSIDH(other_h, "$Id$")
 #include <freeradius-devel/connection.h>
 #include "config.h"
 
-#ifdef HAVE_JSON_JSONH
-#define HAVE_JSON
-#endif
-
 #define CURL_NO_OLDIES 1
 #include <curl/curl.h>
 
-#if defined(HAVE_JSONMC_JSON_H)
-#  include <json-c/json.h>
-#elif defined(HAVE_JSON_JSON_H)
-#  include <json/json.h>
+#ifdef HAVE_JSON
+#  if defined(HAVE_JSONMC_JSON_H)
+#    include <json-c/json.h>
+#  elif defined(HAVE_JSON_JSON_H)
+#    include <json/json.h>
+#  endif
 #endif
 
 #define REST_URI_MAX_LEN               2048