diff options
author | Luca Deri <deri@ntop.org> | 2021-10-11 11:45:45 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-10-11 11:45:45 +0200 |
commit | 246d115d7bf126c284df739c35cd9b790bf140cf (patch) | |
tree | bae84ecf322e62ce1aaee5fa4ce467528421acfc /src/lib/ndpi_utils.c | |
parent | 60eca79fdf552aa98e6a3505f7b690a5b9c3c87c (diff) |
Cleaned up code moving specific includes in files their are using it. Thi prevents ndpi_config.h to be included everywhere in apps using nDPI that might leade to #define redefinitions after the latest changes
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 9839d8863..18e9f424a 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -59,6 +59,15 @@ // #define DEBUG_REASSEMBLY +#ifdef HAVE_PCRE +#include <pcre.h> + +struct pcre_struct { + pcre *compiled; + pcre_extra *optimized; +}; +#endif + /* ****************************************** */ /* implementation of the punycode check function */ |