summaryrefslogtreecommitdiff
path: root/packages/binutils/2.26.1/0004-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
blob: c0867980548c61a68282f4b82d4342f1df8c19c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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_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));