diff options
author | Luca Deri <deri@ntop.org> | 2020-12-01 08:57:09 +0000 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-12-01 08:57:09 +0000 |
commit | 1fb1848586af7b5b121a3e08ed31e607c5758aab (patch) | |
tree | 0875ba88336f79b0d23bdaae075d492bc5d17f5a /src/include | |
parent | eb689b2069ebd9d78e376e812af5163ad61fd7ad (diff) |
Added chec for avoiding doung ntop_config.h include
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_define.h.in | 3 | ||||
-rw-r--r-- | src/include/ndpi_typedefs.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ndpi_define.h.in b/src/include/ndpi_define.h.in index fdfe99856..31db40b49 100644 --- a/src/include/ndpi_define.h.in +++ b/src/include/ndpi_define.h.in @@ -181,7 +181,10 @@ #define NDPI_JABBER_FT_TIMEOUT 5 #define NDPI_SOULSEEK_CONNECTION_IP_TICK_TIMEOUT 600 +#ifndef _NDPI_CONFIG_H_ #include "ndpi_config.h" /* To have access to NDPI_ENABLE_DEBUG_MESSAGES */ +#define _NDPI_CONFIG_H_ +#endif #ifdef NDPI_ENABLE_DEBUG_MESSAGES #define NDPI_LOG(proto, m, log_level, args...) \ diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 31043b685..c196a1760 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1013,7 +1013,10 @@ typedef struct ndpi_proto { #ifdef NDPI_LIB_COMPILATION /* Needed to have access to HAVE_* defines */ +#ifndef _NDPI_CONFIG_H_ #include "ndpi_config.h" +#define _NDPI_CONFIG_H_ +#endif #ifdef HAVE_PCRE #include <pcre.h> |