From 09274bd0af434ce31e522648fc6efd6383bd7c1e Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Fri, 29 Jun 2018 20:38:17 +0800 Subject: [PATCH] ct-ng bundled patch: 0003-MinGW-w64-winpthreads-~ead_mutexattr_settype.patch --- gold/gold-threads.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gold/gold-threads.cc b/gold/gold-threads.cc index c1f4cc3a526..9624ac60bc8 100644 --- 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));