diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-06-14 13:08:26 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-06-14 13:08:26 +0200 |
commit | 8927c2d531a8c86be027c7514b2fcbc3100dacfa (patch) | |
tree | ee156924cfe554ca9937381723e87ac7de34ef62 /include | |
parent | a4781bf800127cf5410ac044ba959400d5475527 (diff) | |
download | wolfbones-8927c2d531a8c86be027c7514b2fcbc3100dacfa.tar.gz wolfbones-8927c2d531a8c86be027c7514b2fcbc3100dacfa.tar.bz2 |
fixed on OpenBSD 4.5
Diffstat (limited to 'include')
-rw-r--r-- | include/wolf/network/network.h | 5 | ||||
-rw-r--r-- | include/wolf/port/sys.h | 2 |
2 files changed, 6 insertions, 1 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 |