diff --git a/src/output-json-alert.c b/src/output-json-alert.c index 2c0d01714c..5bfe562857 100644 --- a/src/output-json-alert.c +++ b/src/output-json-alert.c @@ -69,6 +69,7 @@ #define MODULE_NAME "JsonAlertLog" #ifdef HAVE_LIBJANSSON +#include #define LOG_JSON_PAYLOAD 1 #define LOG_JSON_PACKET 2 diff --git a/src/output-json-alert.h b/src/output-json-alert.h index a10a316d20..c981574f90 100644 --- a/src/output-json-alert.h +++ b/src/output-json-alert.h @@ -29,6 +29,7 @@ void TmModuleJsonAlertLogRegister (void); #ifdef HAVE_LIBJANSSON +#include void AlertJsonHeader(const Packet *p, const PacketAlert *pa, json_t *js); #endif /* HAVE_LIBJANSSON */ diff --git a/src/output-json-http.h b/src/output-json-http.h index 0c886f3dd5..bcaa57aa94 100644 --- a/src/output-json-http.h +++ b/src/output-json-http.h @@ -27,6 +27,7 @@ void TmModuleJsonHttpLogRegister (void); #ifdef HAVE_LIBJANSSON +#include 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); diff --git a/src/output-json-smtp.h b/src/output-json-smtp.h index 2f79d99201..0c60f2d489 100644 --- a/src/output-json-smtp.h +++ b/src/output-json-smtp.h @@ -26,6 +26,7 @@ void TmModuleJsonSmtpLogRegister (void); #ifdef HAVE_LIBJANSSON +#include json_t *JsonSMTPAddMetadata(const Flow *f, uint64_t tx_id); #endif diff --git a/src/output-json-ssh.h b/src/output-json-ssh.h index 5d0752bf2a..28667ca70e 100644 --- a/src/output-json-ssh.h +++ b/src/output-json-ssh.h @@ -28,6 +28,7 @@ void TmModuleJsonSshLogRegister (void); #ifdef HAVE_LIBJANSSON #include "app-layer-ssh.h" +#include void JsonSshLogJSON(json_t *js, SshState *tx); #endif diff --git a/src/output-json-tls.h b/src/output-json-tls.h index f330ad898a..d9d1142b93 100644 --- a/src/output-json-tls.h +++ b/src/output-json-tls.h @@ -28,6 +28,7 @@ void TmModuleJsonTlsLogRegister (void); #ifdef HAVE_LIBJANSSON #include "app-layer-ssl.h" +#include void JsonTlsLogJSONBasic(json_t *js, SSLState *ssl_state); void JsonTlsLogJSONExtended(json_t *js, SSLState *ssl_state); diff --git a/src/output-json.h b/src/output-json.h index 89e11d86ce..b6aec6c05f 100644 --- a/src/output-json.h +++ b/src/output-json.h @@ -28,6 +28,7 @@ void TmModuleOutputJsonRegister (void); #ifdef HAVE_LIBJANSSON +#include #include "suricata-common.h" #include "util-buffer.h" #include "util-logopenfile.h" diff --git a/src/util-debug.c b/src/util-debug.c index d9af08c438..c439cd78c0 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -189,6 +189,7 @@ static inline void SCLogPrintToSyslog(int syslog_log_level, const char *msg) } #ifdef HAVE_LIBJANSSON +#include /** */ int SCLogMessageJSON(struct timeval *tval, char *buffer, size_t buffer_size,