Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Mon, Jul 25, 2011 at 8:17 AM, Rene Engelhard <rene@debian.org> wrote:
Hi,

3.4.x got a#include <sys/prctl.h> in sal which isn't available
on (k9FreeBSD - the GNU/kFreeBSD port is mostly using LINUX though :-)

Fix:

--- sal/osl/unx/thread.c-old    2011-07-22 00:16:33.000000000 +0200
+++ sal/osl/unx/thread.c        2011-07-22 00:17:41.000000000 +0200
@@ -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_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,

OK for -3-4?

+1

looks sane to me.
Pushed.

Norbert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.