From b1282da5424cfc7fbe331ac5256148780a5fa2fb Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Tue, 12 Mar 2019 18:12:18 +0100 Subject: The le32toh() function used in some places on BSD OSes require sys/endian.h to be included. --- src/lib/ndpi_main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 2471a0eb1..4e9f37248 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -41,6 +41,10 @@ #include #endif +#if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ +#include +#endif + #include "ndpi_content_match.c.inc" #include "third_party/include/ndpi_patricia.h" #include "third_party/include/ht_hash.h" -- cgit v1.2.3