aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_includes.h
diff options
context:
space:
mode:
authorAdrian Zgorzałek <adrian@adek.io>2020-08-01 23:25:13 +0100
committerAdrian Zgorzałek <adrian@adek.io>2020-08-09 14:30:12 +0100
commit8f74d5733d6a994acf1ddc985c5a3673619fd805 (patch)
tree3798ed6051ab302ad1dd26577cef1868575b9d5b /src/include/ndpi_includes.h
parent95dfbdc64a48c3f8e57189499d5bb82b1b41ab09 (diff)
OpenBSD: Introduce pkt_timeval to deal with (bpf_)_timeval
Some BSD APIs called in example/ return `struct bpf_timeval`, where nDPI APIs expect `struct timeval`. These two structs, besides having a different name, share the exact same set of fields.
Diffstat (limited to 'src/include/ndpi_includes.h')
-rw-r--r--src/include/ndpi_includes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/ndpi_includes.h b/src/include/ndpi_includes.h
index f8bde5194..99c50fe02 100644
--- a/src/include/ndpi_includes.h
+++ b/src/include/ndpi_includes.h
@@ -57,7 +57,7 @@
#if defined __NetBSD__ || defined __OpenBSD__
#include <netinet/in_systm.h>
-#ifdef __OpenBSD__
+#if defined __OpenBSD__
#include <pthread.h>
#endif
@@ -67,4 +67,8 @@
#endif /* Win32 */
+#if defined __OpenBSD__
+#include "ndpi_includes_OpenBSD.h"
+#endif /* __OpenBSD__ */
+
#endif /* __NDPI_INCLUDES_H__ */