Compilation fixes

This commit is contained in:
Luca Deri
2023-01-25 11:45:35 +01:00
parent 9fc724de5a
commit a3d3856c80
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -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
+2
View File
@@ -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__