diff options
author | Alexey Neyman <stilor@att.net> | 2017-03-04 03:13:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-04 03:13:26 (GMT) |
commit | dedfe6905a7e90933097c345be5cbc743b060622 (patch) | |
tree | 1e1b040b1b6c7dc02e5ef650e847b0a02a63aff4 /patches/binutils/2.28/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch | |
parent | 0b895560198f61d28af494973bd9ca5181db9970 (diff) | |
parent | 69f95de8b030bf03f08ffdd54bac8192a23625e5 (diff) |
Merge pull request #630 from stilor/upgrades
Final batch of updates before 1.23
Diffstat (limited to 'patches/binutils/2.28/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch')
-rw-r--r-- | patches/binutils/2.28/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/binutils/2.28/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/patches/binutils/2.28/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch new file mode 100644 index 0000000..2956385 --- /dev/null +++ b/patches/binutils/2.28/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch @@ -0,0 +1,11 @@ +--- binutils-2.27/gold/gold-threads.cc.orig 2016-12-26 16:44:23.691075600 +1100 ++++ binutils-2.27/gold/gold-threads.cc 2016-12-26 16:46:21.071855200 +1100 +@@ -101,7 +101,7 @@ + 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)); |