From a3d3856c80eb004b73d0e1b949fbdc62b98ee59d Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 25 Jan 2023 11:44:26 +0100 Subject: Compilation fixes --- src/include/ndpi_typedefs.h | 6 +++--- src/lib/ndpi_main.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 67f76473b..73f694a2d 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1585,10 +1585,10 @@ struct ndpi_flow_struct { #if !defined(NDPI_CFFI_PREPROCESSING) && defined(__linux__) #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L -_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 208, - "Size of the struct member protocols increased to more than 208 bytes, " +_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 210, + "Size of the struct member protocols increased to more than 210 bytes, " "please check if this change is necessary."); -_Static_assert(sizeof(struct ndpi_flow_struct) <= 936, +_Static_assert(sizeof(struct ndpi_flow_struct) <= 938, "Size of the flow struct increased to more than 928 bytes, " "please check if this change is necessary."); #endif diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index d495842a0..905a8e346 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -39,8 +39,10 @@ #endif #include + #ifndef WIN32 #include +#include /* TCP flags */ #endif #if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ -- cgit v1.2.3