summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wolf/network/network.h5
-rw-r--r--include/wolf/port/sys.h2
-rw-r--r--src/port/sys_internal.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/include/wolf/network/network.h b/include/wolf/network/network.h
index 29e9ce2..bfcaa3f 100644
--- a/include/wolf/network/network.h
+++ b/include/wolf/network/network.h
@@ -41,8 +41,13 @@ extern "C" {
#include <sys/socket.h> /* for sockaddr_storage */
#include <netinet/in.h> /* for sockaddr_in */
#else
+#if defined OPENBSD
+#include <sys/socket.h> /* for sockaddr_storage */
+#include <netinet/in.h> /* for sockaddr_in */
+#else
#error Check includes first!
#endif
+#endif
/**
* helper union to avoid anti-aliasing warnings in old network functions like getpeername,
diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h
index 3bbd7a6..7a33c81 100644
--- a/include/wolf/port/sys.h
+++ b/include/wolf/port/sys.h
@@ -110,7 +110,7 @@
#if defined OPENBSD
#if OS_MAJOR_VERSION == 4
-#if OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 3
+#if OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 5
#define _XOPEN_SOURCE 600
#define HAVE_STDBOOL_H
#define HAVE_STDINT_H
diff --git a/src/port/sys_internal.h b/src/port/sys_internal.h
index 340ecd8..4858c63 100644
--- a/src/port/sys_internal.h
+++ b/src/port/sys_internal.h
@@ -63,7 +63,7 @@
#if defined OPENBSD
#if OS_MAJOR_VERSION == 4
-#if OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 3
+#if OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 5
#define HAVE_LOCK_F
#define HAVE_LOCALTIME_R
#else