diff options
author | Luca Deri <deri@ntop.org> | 2023-01-25 11:44:26 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2023-01-25 11:45:35 +0100 |
commit | a3d3856c80eb004b73d0e1b949fbdc62b98ee59d (patch) | |
tree | 1efc1d983083e89c325a3d8d08adf02b78d4937e | |
parent | 9fc724de5a6539b84dfbec5d0d0fff68dc5676de (diff) |
Compilation fixes
-rw-r--r-- | src/include/ndpi_typedefs.h | 6 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
2 files changed, 5 insertions, 3 deletions
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 <time.h> + #ifndef WIN32 #include <unistd.h> +#include <netinet/tcp.h> /* TCP flags */ #endif #if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ |