summaryrefslogtreecommitdiff
path: root/include/wolf/network/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wolf/network/network.h')
-rw-r--r--include/wolf/network/network.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/wolf/network/network.h b/include/wolf/network/network.h
index bfcaa3f..a16e65f 100644
--- a/include/wolf/network/network.h
+++ b/include/wolf/network/network.h
@@ -43,11 +43,16 @@ extern "C" {
#else
#if defined OPENBSD
#include <sys/socket.h> /* for sockaddr_storage */
+//#include <netinet/in.h> /* for sockaddr_in */
+#else
+#if defined NETBSD
+#include <sys/socket.h> /* for sockaddr_storage */
#include <netinet/in.h> /* for sockaddr_in */
#else
#error Check includes first!
-#endif
-#endif
+#endif /* defined NETBSD */
+#endif /* defined OPENBSD */
+#endif /* defined LINUX */
/**
* helper union to avoid anti-aliasing warnings in old network functions like getpeername,