diff options
-rw-r--r-- | include/wolf/port/sys.h | 28 | ||||
-rwxr-xr-x | makefiles/gmake/guess_env | 2 | ||||
-rw-r--r-- | src/port/sys_internal.h | 9 |
3 files changed, 36 insertions, 3 deletions
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 diff --git a/makefiles/gmake/guess_env b/makefiles/gmake/guess_env index e1c66e3..bf7e9d9 100755 --- a/makefiles/gmake/guess_env +++ b/makefiles/gmake/guess_env @@ -83,6 +83,8 @@ case "$UNAME_MACHINE" in ;; sun4u) ARCH=sun4u ;; + sparc64) ARCH=sparc64 + ;; *) ARCH=UNKNOWN echo "Unknown architecture '$UNAME_MACHINE'" diff --git a/src/port/sys_internal.h b/src/port/sys_internal.h index 82d3d7d..fe73608 100644 --- a/src/port/sys_internal.h +++ b/src/port/sys_internal.h @@ -96,7 +96,16 @@ #error unknown platform #endif /* defined OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 7 */ #else +#if OS_MAJOR_VERSION == 5 +#if OS_MINOR_VERSION == 0 +#define HAVE_LOCK_F +#define HAVE_LOCALTIME_R +#define HAVE_DLFCN +#define WOLF_LIBRARY_DLERROR_CONST const +#endif /* OS_MINOR_VERSION == 0 */ +#else #error unknown platform +#endif /* defined OS_MAJOR_VERSION == 5 */ #endif /* defined OS_MAJOR_VERSION == 4 */ #endif /* defined OPENBSD */ |