diff options
author | Darryl Sokoloski <darryl@sokoloski.ca> | 2018-08-16 22:31:23 -0400 |
---|---|---|
committer | Darryl Sokoloski <darryl@sokoloski.ca> | 2018-08-16 22:31:23 -0400 |
commit | cd9d4569946055fc995a357d74e2fb67bf1e1f8c (patch) | |
tree | de434013f9e84711b7356fb4d4f36b88a97b274c | |
parent | 579f1b05dbc351f310cfbbb0ff01c0682bc7f4f0 (diff) |
Include sys/types.h for u_int16_t.
On various embedded environments (OpenWrt, EdgeOS), <sys/types.h> must be included for u_intX_t types. The Hyperscan changes made recently introducted a u_int16_t member in actypes.h which is undeclared in certainly environments without this include.
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca>
-rw-r--r-- | src/lib/ndpi_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 85cd4b9eb..fc6f4ea55 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -27,6 +27,7 @@ #include <stdlib.h> #include <errno.h> +#include <sys/types.h> #include "ahocorasick.h" #include "libcache.h" |