Merge pull request #678 from madpilot78/FreeBSD_endian.h

The le32toh() function used in some places on BSD OSes requires sys/en…
This commit is contained in:
Luca Deri
2019-03-23 09:53:05 +01:00
committed by GitHub
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