mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-11 11:07:57 +08:00
ct-ng bundled patch: 0003-MinGW-w64-winpthreads-~ead_mutexattr_settype.patch
This commit is contained in:
committed by
Alexey Lapshin
parent
46307bad36
commit
09274bd0af
@@ -101,7 +101,7 @@ Lock_impl_threads::Lock_impl_threads()
|
||||
int err = pthread_mutexattr_init(&attr);
|
||||
if (err != 0)
|
||||
gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));
|
||||
#ifdef PTHREAD_MUTEX_ADAPTIVE_NP
|
||||
#if defined(PTHREAD_MUTEX_ADAPTIVE_NP) && !defined(_WIN32)
|
||||
err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
|
||||
if (err != 0)
|
||||
gold_fatal(_("pthread_mutexattr_settype failed: %s"), strerror(err));
|
||||
|
||||
Reference in New Issue
Block a user