[Libreoffice] [PUSHED][PATCH] fix GNU/kFreeBSD build

Norbert Thiebaud nthiebaud at gmail.com
Tue Jul 26 21:27:53 PDT 2011


On Mon, Jul 25, 2011 at 8:17 AM, Rene Engelhard <rene at 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


More information about the LibreOffice mailing list