summaryrefslogtreecommitdiff
blob: 78a34886a73d0524f2d5e7d36b15a878ada8d24d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -194,7 +194,7 @@
 if test "$LOGNORM" = "yes"; then
        AC_MSG_RESULT([------- liblognorm support is enabled -------])
        AC_CHECK_HEADER([liblognorm.h])
-       AC_CHECK_HEADERS([json/json.h json.h], [break], [AC_MSG_ERROR([json-c headers not found or not usable.
+       AC_CHECK_HEADERS([json-c/json.h json.h], [break], [AC_MSG_ERROR([json-c headers not found or not usable.
 This library is important for the correlation aspects of Sagan! Please see
 https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature
 use the --disable-lognorm flag.])]) 
diff --git a/src/sagan-liblognorm.c b/src/sagan-liblognorm.c
--- a/src/sagan-liblognorm.c
+++ b/src/sagan-liblognorm.c
@@ -40,9 +40,7 @@
 #include <lognorm.h>
 
 #if defined(HAVE_JSON_JSON_H)
-#  include <json/json.h>
-#else
-#  include <json.h>
+#  include <json-c/json.h>
 #endif
 
 #include "sagan.h"