Move the configure include file inclusion and code depending on it in code protected by the NDPI_LIB_COMPILATION define, this should avoid it polluting the environment when including this file from ntopng, version against stable branch.

This commit is contained in:
Guido Falsi
2018-08-27 17:52:56 +02:00
parent c2f476c869
commit 91ac4e4bee
2 changed files with 10 additions and 12 deletions
-7
View File
@@ -51,13 +51,6 @@
#include <hs/hs.h>
#endif
#ifdef HAVE_HYPERSCAN
struct hs {
hs_database_t *database;
hs_scratch_t *scratch;
};
#endif
#define NDPI_CONST_GENERIC_PROTOCOL_NAME "GenericProtocol"
static int _ndpi_debug_callbacks = 0;