The le32toh() function used in some places on BSD OSes require sys/endian.h to be included.

This commit is contained in:
Guido Falsi
2019-03-12 18:12:18 +01:00
parent 6c1d236a03
commit b1282da542
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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"
+4
View File
@@ -22,6 +22,10 @@
*
*/
#if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
#include <sys/endian.h>
#endif
#include "ndpi_protocol_ids.h"
#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_QUIC