diff options
author | Rene Engelhard <rene@debian.org> | 2011-08-24 00:27:00 +0200 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2011-08-24 00:33:30 +0200 |
commit | d419bfc9f7e6114af7461fab17dc0782397e5433 (patch) | |
tree | 4e9c2174a2f0005abc1c95f7e2898bfbb2ba112c /sal | |
parent | 9f6b7cde5415eee5c26f890e78d6a6ed2ff6861f (diff) |
<sys/prctl.h> is not available on kFreeBSD
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/thread.c b/sal/osl/unx/thread.c index c8f060f4d2ed..bfe86f7fadc5 100644 --- a/sal/osl/unx/thread.c +++ b/sal/osl/unx/thread.c @@ -38,7 +38,7 @@ #include <rtl/alloc.h> #include <sal/macros.h> -#if defined LINUX +#if defined LINUX && ! defined __FreeBSD_kernel__ #include <sys/prctl.h> #ifndef PR_SET_NAME #define PR_SET_NAME 15 @@ -599,7 +599,7 @@ void SAL_CALL osl_yieldThread() } void SAL_CALL osl_setThreadName(char const * name) { -#if defined LINUX +#if defined LINUX && ! defined __FreeBSD_kernel__ if (prctl(PR_SET_NAME, (unsigned long) name, 0, 0, 0) != 0) { OSL_TRACE( "%s prctl(PR_SET_NAME) failed with errno %d", OSL_LOG_PREFIX, |