This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold patch committed] Fix #ifdef typo
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Mon, 07 Jun 2010 08:01:22 -0700
- Subject: [gold patch committed] Fix #ifdef typo
I got an off-list message about a typo in gold-threads.c, with this
patch. Committed to mainline.
Ian
2010-06-07 Damien Diederen <dd@crosstwine.com>
* gold-threads.cc (Lock_impl_threads::Lock_impl_threads): Correct
#ifdef typo.
Index: gold-threads.cc
===================================================================
RCS file: /cvs/src/src/gold/gold-threads.cc,v
retrieving revision 1.10
diff -p -u -r1.10 gold-threads.cc
--- gold-threads.cc 12 Feb 2010 03:23:26 -0000 1.10
+++ gold-threads.cc 7 Jun 2010 14:54:28 -0000
@@ -101,7 +101,7 @@ Lock_impl_threads::Lock_impl_threads()
int err = pthread_mutexattr_init(&attr);
if (err != 0)
gold_fatal(_("pthead_mutextattr_init failed: %s"), strerror(err));
-#ifdef PTHREAD_MUTEXT_ADAPTIVE_NP
+#ifdef PTHREAD_MUTEX_ADAPTIVE_NP
err = pthread_mutextattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
if (err != 0)
gold_fatal(_("pthread_mutextattr_settype failed: %s"), strerror(err));