diff options
author | Alexey Neyman <stilor@att.net> | 2019-02-14 07:54:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 07:54:06 (GMT) |
commit | fb744d81588395a97cee951a151a56501a500e42 (patch) | |
tree | 895628cd0c17103416c97fb4cb4b66ed469428dd /packages/binutils/2.32/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch | |
parent | b135af0c4a8a141d537a7e60a989594d354abece (diff) | |
parent | 91d01a0e4750be6ab2b71fb953a48dff88dc469b (diff) |
Merge pull request #1140 from stilor/upgradecrosstool-ng-1.24.0-rc1
Package updates
Diffstat (limited to 'packages/binutils/2.32/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch')
-rw-r--r-- | packages/binutils/2.32/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/binutils/2.32/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.32/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch new file mode 100644 index 0000000..99dee96 --- /dev/null +++ b/packages/binutils/2.32/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 @@ + 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)); |