From 7c3943709de0c1c5ff35d6a7b72fd726fc422f1e Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 21 Aug 2011 12:12:52 +0200 Subject: adapted for Linux 3.0 --- include/wolf/port/sys.h | 23 +++++++++++++++++++++++ src/port/sys_internal.h | 11 +++++++++++ 2 files changed, 34 insertions(+) diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h index b8d90d4..c8f110a 100644 --- a/include/wolf/port/sys.h +++ b/include/wolf/port/sys.h @@ -51,8 +51,31 @@ #else #error unknown platform #endif /* defined OS_MINOR_VERSION == 6 */ +#else +#if OS_MAJOR_VERSION == 3 +#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_STRCASECMP +#define HAVE_STRNCASECMP +#define HAVE_STRINGS_H +#define HAVE_SYSLOG_H +#define HAVE_GETADDRINFO +#define HAVE_IPV6 +#define HAVE_PTHREADS +#else + #error unknown platform +#endif /* define OS_MINOR_VERSION == 0 */ #else #error unknown platform +#endif /* defined OS_MAJOR_VERSION == 3 */ #endif /* defined OS_MAJOR_VERSION == 2 */ #endif /* defined LINUX */ diff --git a/src/port/sys_internal.h b/src/port/sys_internal.h index 11f289e..fb2ab99 100644 --- a/src/port/sys_internal.h +++ b/src/port/sys_internal.h @@ -36,8 +36,19 @@ #else #error unknown platform #endif /* defined OS_MINOR_VERSION == 6 */ +#else +#if OS_MAJOR_VERSION == 3 +#if OS_MINOR_VERSION == 0 +#define HAVE_LOCK_F +#define HAVE_LOCALTIME_R +#define HAVE_DLFCN +#define WOLF_LIBRARY_DLERROR_CONST +#else + #error unknown platform +#endif /* defined OS_MINOR_VERSION == 0 */ #else #error unknown platform +#endif /* defined OS_MAJOR_VERSION == 3 */ #endif /* defined OS_MAJOR_VERSION == 2 */ #endif /* defined LINUX */ -- cgit v1.2.3-54-g00ecf