Compilation fixes
This commit is contained in:
@@ -1585,10 +1585,10 @@ struct ndpi_flow_struct {
|
|||||||
|
|
||||||
#if !defined(NDPI_CFFI_PREPROCESSING) && defined(__linux__)
|
#if !defined(NDPI_CFFI_PREPROCESSING) && defined(__linux__)
|
||||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
||||||
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 208,
|
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 210,
|
||||||
"Size of the struct member protocols increased to more than 208 bytes, "
|
"Size of the struct member protocols increased to more than 210 bytes, "
|
||||||
"please check if this change is necessary.");
|
"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, "
|
"Size of the flow struct increased to more than 928 bytes, "
|
||||||
"please check if this change is necessary.");
|
"please check if this change is necessary.");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -39,8 +39,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <netinet/tcp.h> /* TCP flags */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
|
#if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
|
||||||
|
|||||||
Reference in New Issue
Block a user