diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2011-08-21 12:12:52 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2011-08-21 12:12:52 +0200 |
commit | 7c3943709de0c1c5ff35d6a7b72fd726fc422f1e (patch) | |
tree | 2e0086c30b58b3f354ce8884833fbe1c16bddc23 | |
parent | 47dc7fd793106ec8ba3d6d0f39674735aa4bbaf9 (diff) | |
download | wolfbones-7c3943709de0c1c5ff35d6a7b72fd726fc422f1e.tar.gz wolfbones-7c3943709de0c1c5ff35d6a7b72fd726fc422f1e.tar.bz2 |
adapted for Linux 3.0
-rw-r--r-- | include/wolf/port/sys.h | 23 | ||||
-rw-r--r-- | src/port/sys_internal.h | 11 |
2 files changed, 34 insertions, 0 deletions
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 @@ -52,7 +52,30 @@ #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 @@ -37,7 +37,18 @@ #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 */ |