bug-hurd
[Top][All Lists]
Advanced

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

Re: PTHREAD_MUTEX_ADAPTIVE_NP undefined in Gecko


From: Paul Sonnenschein
Subject: Re: PTHREAD_MUTEX_ADAPTIVE_NP undefined in Gecko
Date: Tue, 09 Feb 2021 13:10:50 +0100
User-agent: Evolution 3.38.3-1

Hi,

Am Dienstag, dem 09.02.2021 um 13:04 +0100 schrieb Riccardo Mottola:> 
> [...]
> thank you, it must be optional:
> 
> #if (defined(LINUX) && (__GLIBC__ > 2) || (__GLIBC__ == 2 && 
> __GLIBC_MINOR__ >= 2)) || \
>      (defined(FREEBSD) && __FreeBSD_version > 700055)
>      rv = pthread_mutexattr_settype(&_pt_mattr,
> PTHREAD_MUTEX_ADAPTIVE_NP);
>      PR_ASSERT(0 == rv);
> #endif
> 
> does HURD define LINUX? somehow counterintuitive, I'd expect only
> GNU, but not LINUX: would help in these situations

Hi, look at the patch in the bug report I mentioned:
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=970659;filename=nspr_pr_src_pthreads_ptsynch.c.diff;msg=5
The error lies at the parentheses and (__GLIBC__ == 2 &&
__GLIBC_MINOR__ >= 2) is true for the HURD.

Paul

> Riccardo
> 
> 


Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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