summaryrefslogtreecommitdiff
path: root/packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2020-08-30 08:51:23 (GMT)
committerGitHub <noreply@github.com>2020-08-30 08:51:23 (GMT)
commit23f17ab5cbff7a6ae46816553a166ff782da0c9a (patch)
treeba432b0ae7bf1715bfc41f924c9a1d7b644ef4f2 /packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
parentd908f53ffaed4592d9c660f23d66bcbb642f76f6 (diff)
parent793d65899f448ee9b0cf121a170c82f0bc15b854 (diff)
Merge pull request #1368 from egtvedt/add-gcc-9.3-and-10.2-binutils-2.35
Add gcc 9.3 and 10.2, and binutils 2.35
Diffstat (limited to 'packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch')
-rw-r--r--packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
new file mode 100644
index 0000000..c712df5
--- /dev/null
+++ b/packages/binutils/2.35/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));