[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PTHREAD_MUTEX_ADAPTIVE_NP undefined in Gecko

From: Richard Braun
Subject: Re: PTHREAD_MUTEX_ADAPTIVE_NP undefined in Gecko
Date: Tue, 9 Feb 2021 11:29:18 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

On Tue, Feb 09, 2021 at 10:36:28AM +0100, Riccardo Mottola wrote:
> how is compilation of Gecko related browsers going on? I am trying to
> compile ArcticFox and I get this:
>  3:43.44
> /home/multix/code/Arctic-Fox/nsprpub/pr/src/pthreads/ptsynch.c:60:48: error:
> ‘PTHREAD_MUTEX_ADAPTIVE_NP’ undeclared (first use in this function); did you
>  3:43.44    60 |     rv = pthread_mutexattr_settype(&_pt_mattr,
>  3:43.44       | ^~~~~~~~~~~~~~~~~~~~~~~~~
>  3:43.44       | PTHREAD_MUTEX_FAST_NP
> The code is almost unchanged with current gecko, so I wonder if there were
> any workarounds attempted and/or upliftable patches for that.

The _NP suffix means non-posix, and is generally used for system-specific
features. The use of "adaptive" mutexes is probably just an optimization,
so it should be completely safe to just comment it out on systems where
the macro doesn't exist (assuming it's a macro).

Richard Braun

reply via email to

[Prev in Thread] Current Thread [Next in Thread]