summaryrefslogtreecommitdiff
path: root/packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-18 23:17:53 (GMT)
committerAlexey Neyman <stilor@att.net>2017-08-18 23:17:53 (GMT)
commit321990916bd5180b11c598279680794ce9b044e3 (patch)
tree0b97ada2156ef1e8fc5d83c0dadbd2d7f7a87cff /packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
parent5d6ac1b8b1160aad4b9f09b31b7bad4ea14519f3 (diff)
Trim old versions
Policy: - Only latest patchlevel for each branch release Exception: CLooG - ISL has dependencies on specific CLooG releases within a single branch - Where there are no patchlevel releases (uClibc, musl) - just retain two most recent releases Also, missed automake update: 1.14 -> 1.14.1 Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch')
-rw-r--r--packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
new file mode 100644
index 0000000..f9a8af6
--- /dev/null
+++ b/packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
@@ -0,0 +1,11 @@
+--- binutils-2.25.1/gold/gold-threads.cc.orig 2015-10-20 22:39:36.371169400 +0100
++++ binutils-2.25.1/gold/gold-threads.cc 2015-10-20 22:39:38.182772700 +0100
+@@ -101,7 +101,7 @@
+ int err = pthread_mutexattr_init(&attr);
+ if (err != 0)
+ gold_fatal(_("pthead_mutextattr_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));