aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_includes.h
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2023-09-26 23:10:57 +0200
committerGitHub <noreply@github.com>2023-09-26 23:10:57 +0200
commitef3adb98308f14628e64b918f739e472de00cfcf (patch)
treea4bfc6a5a4e5d419e7088e5176e724990ab033fb /src/include/ndpi_includes.h
parent725fcf4852f06e2f54469c2439d13169d5d68d09 (diff)
Added printf/fprintf replacement for some internal modules. (#1974)
* logging is instead redirected to `ndpi_debug_printf` Signed-off-by: lns <matzeton@googlemail.com> Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/include/ndpi_includes.h')
-rw-r--r--src/include/ndpi_includes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ndpi_includes.h b/src/include/ndpi_includes.h
index 27580a45e..ae6230923 100644
--- a/src/include/ndpi_includes.h
+++ b/src/include/ndpi_includes.h
@@ -41,11 +41,14 @@
#include <sys/param.h>
#include <arpa/inet.h>
#include <sys/time.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#ifndef __APPLE__
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
+#endif
#if !defined __APPLE__ && !defined __FreeBSD__ && !defined __NetBSD__ && !defined __OpenBSD__
#include <endian.h>