aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorGuido Falsi <mad@madpilot.net>2019-03-12 18:12:18 +0100
committerGuido Falsi <mad@madpilot.net>2019-03-12 18:12:18 +0100
commitb1282da5424cfc7fbe331ac5256148780a5fa2fb (patch)
treed8af34550bfedb5449b9c8d7ffaddb055410aae3 /src/lib/ndpi_main.c
parent6c1d236a03f6c41f14d0d3c8a7627548fcd55779 (diff)
The le32toh() function used in some places on BSD OSes require sys/endian.h to be included.
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c4
1 files changed, 4 insertions, 0 deletions
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 <unistd.h>
#endif
+#if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
+#include <sys/endian.h>
+#endif
+
#include "ndpi_content_match.c.inc"
#include "third_party/include/ndpi_patricia.h"
#include "third_party/include/ht_hash.h"