diff options
author | 2020-09-27 02:22:37 (GMT) | |
---|---|---|
committer | 2020-09-27 02:22:37 (GMT) | |
commit | b3ed2c40d37cf7d5c2143307286f5d9557ed2df3 (patch) | |
tree | 836107b57162b18c301f430742a12c80c5231579 /packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch | |
parent | ea386017b60b38b17b13044544eeb268c1c3ee28 (diff) | |
parent | 04b318a48b33f1342129788adf04bbd2067198ce (diff) |
Merge pull request #1391 from egtvedt/add-binutils-2.35.1
binutils: add version 2.35.1
Diffstat (limited to 'packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch')
-rw-r--r-- | packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch new file mode 100644 index 0000000..c712df5 --- /dev/null +++ b/packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch @@ -0,0 +1,15 @@ +--- + gold/gold-threads.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/gold/gold-threads.cc ++++ b/gold/gold-threads.cc +@@ -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)); |