diff options
author | Rene Engelhard <rene@debian.org> | 2011-07-26 23:26:25 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-07-26 23:26:25 -0500 |
commit | c7cefc7adb5ad8296f8911e8f39f0f86b23c2040 (patch) | |
tree | 4bd48e892f447d92fe239496119cacdfc6bc73d5 | |
parent | 0c7f3ec7a9c5cd9feb88767aa960b14db2ca0aa4 (diff) |
<sys/prctl.h> is not available on k9FreeBSD
Signed-off-by: Norbert Thiebaud <nthiebaud@gmail.com>
-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 06730acb2..b096011a1 100644 --- a/sal/osl/unx/thread.c +++ b/sal/osl/unx/thread.c @@ -37,7 +37,7 @@ #include <rtl/textenc.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 @@ -598,7 +598,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, |