Parenthesis error in nspr/pr/src/pthreads/ptsynch.c
Categories
(NSPR :: NSPR, defect)
Tracking
(Not tracked)
People
(Reporter: svante.signell, Assigned: svante.signell)
References
Details
Attachments
(1 file)
666 bytes,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Build on GNU/Hurd
Actual results:
ptsynch.c:55:48: error: ‘PTHREAD_MUTEX_ADAPTIVE_NP’ undeclared (first use in this function);
Expected results:
This code should not be activated
rv = pthread_mutexattr_settype(&_pt_mattr, PTHREAD_MUTEX_ADAPTIVE_NP);
This is due to an error in the condition:
#if (defined(LINUX) && (GLIBC > 2) || (GLIBC == 2 && GLIBC_MINOR >= 2))...
The second applies to all systems defining glibc>=2.2. It was probably meant to include the condition on LINUX too. The attached patch fixes this.
Comment 1•3 years ago
|
||
The severity field is not set for this bug.
:KaiE, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 2•2 years ago
|
||
ping?
Comment 3•2 years ago
|
||
Thanks for your patch. Your patch seems reasonable.
I'll commit your patch to NSPR. It might take a while (months) until it's released.
Comment 4•2 years ago
|
||
Comment on attachment 9299742 [details] [diff] [review]
nspr_pr_src_pthreads_ptsynch.c.diff
r=kaie
Updated•2 years ago
|
Comment 5•2 years ago
|
||
Updated•2 years ago
|
Description
•