]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
json: fix missing includes in disable unix socket case 1842/head
authorAndreas Herz <andi@geekosphere.org>
Sun, 7 Feb 2016 22:02:14 +0000 (23:02 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Feb 2016 11:00:18 +0000 (12:00 +0100)
src/output-json-alert.c
src/output-json-alert.h
src/output-json-http.h
src/output-json-smtp.h
src/output-json-ssh.h
src/output-json-tls.h
src/output-json.h
src/util-debug.c

index 2c0d01714c7fc2d0b5127a8be8f457986a502a23..5bfe562857c65ada82312b748733f1d17de3760b 100644 (file)
@@ -69,6 +69,7 @@
 #define MODULE_NAME "JsonAlertLog"
 
 #ifdef HAVE_LIBJANSSON
+#include <jansson.h>
 
 #define LOG_JSON_PAYLOAD 1
 #define LOG_JSON_PACKET 2
index a10a316d20b3a1375313bdbffd078050d55336f2..c981574f90dde8606265180d74f2ffdbdda50750 100644 (file)
@@ -29,6 +29,7 @@
 
 void TmModuleJsonAlertLogRegister (void);
 #ifdef HAVE_LIBJANSSON
+#include <jansson.h>
 void AlertJsonHeader(const Packet *p, const PacketAlert *pa, json_t *js);
 #endif /* HAVE_LIBJANSSON */
 
index 0c886f3dd56dd944bc6502d7337b2c364e658ac0..bcaa57aa9476e5e0c8fcd7dc9b10d2300a1f8e93 100644 (file)
@@ -27,6 +27,7 @@
 void TmModuleJsonHttpLogRegister (void);
 
 #ifdef HAVE_LIBJANSSON
+#include <jansson.h>
 void JsonHttpLogJSONBasic(json_t *js, htp_tx_t *tx);
 void JsonHttpLogJSONExtended(json_t *js, htp_tx_t *tx);
 json_t *JsonHttpAddMetadata(const Flow *f, uint64_t tx_id);
index 2f79d992011a4477ebc0ca5afd862d785fbba16a..0c60f2d4891acd6acfbe0278871975c50bdf88d6 100644 (file)
@@ -26,6 +26,7 @@
 
 void TmModuleJsonSmtpLogRegister (void);
 #ifdef HAVE_LIBJANSSON
+#include <jansson.h>
 json_t *JsonSMTPAddMetadata(const Flow *f, uint64_t tx_id);
 #endif
 
index 5d0752bf2a53299575eda0ce0d25bb3a69e041cc..28667ca70ea8ad36d2526710393b5da022f4fd9f 100644 (file)
@@ -28,6 +28,7 @@ void TmModuleJsonSshLogRegister (void);
 
 #ifdef HAVE_LIBJANSSON
 #include "app-layer-ssh.h"
+#include <jansson.h>
 
 void JsonSshLogJSON(json_t *js, SshState *tx);
 #endif
index f330ad898aad2d138776493b7043ab4ce35527e7..d9d1142b93f6b3c1caeadde64e32f4770ddd000a 100644 (file)
@@ -28,6 +28,7 @@ void TmModuleJsonTlsLogRegister (void);
 
 #ifdef HAVE_LIBJANSSON
 #include "app-layer-ssl.h"
+#include <jansson.h>
 
 void JsonTlsLogJSONBasic(json_t *js, SSLState *ssl_state);
 void JsonTlsLogJSONExtended(json_t *js, SSLState *ssl_state);
index 89e11d86ce0153dbb1e3380564c0e6505859ace5..b6aec6c05fe3fd2dc1465c20d84c7556e0b07ce8 100644 (file)
@@ -28,6 +28,7 @@ void TmModuleOutputJsonRegister (void);
 
 #ifdef HAVE_LIBJANSSON
 
+#include <jansson.h>
 #include "suricata-common.h"
 #include "util-buffer.h"
 #include "util-logopenfile.h"
index d9af08c4381a2bedde3e5d80bb7e8d50c4511c1e..c439cd78c04155598a8b095deb7db9434b2979f1 100644 (file)
@@ -189,6 +189,7 @@ static inline void SCLogPrintToSyslog(int syslog_log_level, const char *msg)
 }
 
 #ifdef HAVE_LIBJANSSON
+#include <jansson.h>
 /**
  */
 int SCLogMessageJSON(struct timeval *tval, char *buffer, size_t buffer_size,