diff options
author | Robert Nagy <robert@openbsd.org> | 2010-11-04 09:25:04 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@novell.com> | 2010-11-04 09:25:04 +0100 |
commit | 7659ad44e3e1c955400c77dc1d45cc481faf55bf (patch) | |
tree | 28911f518f908174f06667beac94992caec05667 /sal/rtl | |
parent | e456a0804052a0ad0a4daef4fad9c5205bd7aa60 (diff) |
Patches for ure, neeed by OpenBSD
Adds the necessary distinctions in the system abstraction layers.
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/source/alloc.c | 5 | ||||
-rw-r--r-- | sal/rtl/source/macro.hxx | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sal/rtl/source/alloc.c b/sal/rtl/source/alloc.c index 759aacfaf8b2..fb4f8767106f 100644 --- a/sal/rtl/source/alloc.c +++ b/sal/rtl/source/alloc.c @@ -70,7 +70,8 @@ typedef pthread_mutex_t mutex_type; #define RTL_MUTEX_ACQUIRE(a) pthread_mutex_lock((a)) #define RTL_MUTEX_RELEASE(a) pthread_mutex_unlock((a)) -#if defined(FREEBSD) || defined(NETBSD) || defined(MACOSX) +#if defined(FREEBSD) || defined(NETBSD) || defined(MACOSX) || \ + defined(OPENBSD) static sal_Size __rtl_memory_vmpagesize (void) { /* xBSD */ @@ -88,7 +89,7 @@ static sal_Size __rtl_memory_vmpagesize (void) /* other */ return (sal_Size)(0x2000); } -#endif /* FREEBSD || NETBSD || MACOSX || LINUX || SOLARIS || AIX */ +#endif /* FREEBSD || NETBSD || MACOSX || LINUX || SOLARIS || AIX || OPENBSD*/ #ifndef PROT_HEAP #define PROT_HEAP (PROT_READ | PROT_WRITE | PROT_EXEC) diff --git a/sal/rtl/source/macro.hxx b/sal/rtl/source/macro.hxx index 8ae03eab2aec..bb86b7d9ae39 100644 --- a/sal/rtl/source/macro.hxx +++ b/sal/rtl/source/macro.hxx @@ -53,6 +53,8 @@ #define THIS_OS "FreeBSD" #elif defined AIX #define THIS_OS "AIX" +#elif defined OPENBSD +#define THIS_OS "OpenBSD" #endif #if ! defined THIS_OS |