From 246d115d7bf126c284df739c35cd9b790bf140cf Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 11 Oct 2021 11:45:45 +0200 Subject: 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 --- src/lib/ndpi_utils.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/ndpi_utils.c') 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 + +struct pcre_struct { + pcre *compiled; + pcre_extra *optimized; +}; +#endif + /* ****************************************** */ /* implementation of the punycode check function */ -- cgit v1.2.3