From abb5c4f09cb5ef0f9b9c32e6ff57227fb29a372b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 17 Nov 2011 08:24:46 +0100 Subject: adapted for OpenBSD 5.0 on SPARC --- include/wolf/port/sys.h | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h index ae82af8..b937e40 100644 --- a/include/wolf/port/sys.h +++ b/include/wolf/port/sys.h @@ -157,7 +157,7 @@ #if defined OPENBSD #if OS_MAJOR_VERSION == 4 -#if OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 7 +#if OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 9 #define _XOPEN_SOURCE 600 #define HAVE_STDBOOL_H #define HAVE_STDINT_H @@ -177,10 +177,32 @@ #define HAVE_PTHREADS #else #error unknown platform -#endif /* defined OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 7 */ +#endif /* OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 9 */ #else +#if OS_MAJOR_VERSION == 5 +#else #error unknown platform -#endif /* defined OS_MAJOR_VERSION == 4 */ +#endif /* OS_MAJOR_VERSION == 5 */ +#if OS_MINOR_VERSION == 0 +#define _XOPEN_SOURCE 600 +#define HAVE_STDBOOL_H +#define HAVE_STDINT_H +#define HAVE_VSNPRINTF +#define HAVE_SNPRINTF +#define HAVE_VASPRINTF +#define HAVE_ASPRINTF +#define HAVE_STRDUP +#define HAVE_STRERROR_R +#define HAVE_SYSLOG_H +#define HAVE_STRLCPY +#define MUST_DEFINE_STRLCPY_PROTOTYPE +#define HAVE_STRLCAT +#define MUST_DEFINE_STRLCAT_PROTOTYPE +#define HAVE_GETADDRINFO +#define HAVE_IPV6 +#define HAVE_PTHREADS +#endif /* OS_MINOR_VERSION == 0 */ +#endif /* OS_MAJOR_VERSION == 4 */ #endif /* defined OPENBSD */ #if defined NETBSD -- cgit v1.2.3-54-g00ecf