diff options
author | Alexey Neyman <stilor@att.net> | 2017-02-12 11:21:20 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-02-12 11:40:22 -0800 |
commit | 8bef083201a2450d8809c1f37fdfdc4d18f24edc (patch) | |
tree | c74a1c24eec56a42ef4038cde54237a25c8bc605 | |
parent | c31ed45a65e9e30fe2000bf1704583038522646e (diff) | |
download | crosstool-ng-8bef083201a2450d8809c1f37fdfdc4d18f24edc.tar.gz crosstool-ng-8bef083201a2450d8809c1f37fdfdc4d18f24edc.tar.bz2 crosstool-ng-8bef083201a2450d8809c1f37fdfdc4d18f24edc.zip |
Backport mutextattr typo fix to 2.24 and 2.23.2
Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r-- | patches/binutils/2.23.2/310-fix-gold-pthreads-typo.patch | 14 | ||||
-rw-r--r-- | patches/binutils/2.24/310-fix-gold-pthreads-typo.patch | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/patches/binutils/2.23.2/310-fix-gold-pthreads-typo.patch b/patches/binutils/2.23.2/310-fix-gold-pthreads-typo.patch new file mode 100644 index 00000000..f2e6ff25 --- /dev/null +++ b/patches/binutils/2.23.2/310-fix-gold-pthreads-typo.patch @@ -0,0 +1,14 @@ +--- binutils-2.25.1/gold/gold-threads.cc.orig 2014-10-14 08:32:04.000000000 +0100 ++++ binutils-2.25.1/gold/gold-threads.cc 2015-10-20 22:38:18.640819300 +0100 +@@ -102,9 +102,9 @@ + if (err != 0) + gold_fatal(_("pthead_mutextattr_init failed: %s"), strerror(err)); + #ifdef PTHREAD_MUTEX_ADAPTIVE_NP +- err = pthread_mutextattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); ++ err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); + if (err != 0) +- gold_fatal(_("pthread_mutextattr_settype failed: %s"), strerror(err)); ++ gold_fatal(_("pthread_mutexattr_settype failed: %s"), strerror(err)); + #endif + + err = pthread_mutex_init(&this->mutex_, &attr); diff --git a/patches/binutils/2.24/310-fix-gold-pthreads-typo.patch b/patches/binutils/2.24/310-fix-gold-pthreads-typo.patch new file mode 100644 index 00000000..f2e6ff25 --- /dev/null +++ b/patches/binutils/2.24/310-fix-gold-pthreads-typo.patch @@ -0,0 +1,14 @@ +--- binutils-2.25.1/gold/gold-threads.cc.orig 2014-10-14 08:32:04.000000000 +0100 ++++ binutils-2.25.1/gold/gold-threads.cc 2015-10-20 22:38:18.640819300 +0100 +@@ -102,9 +102,9 @@ + if (err != 0) + gold_fatal(_("pthead_mutextattr_init failed: %s"), strerror(err)); + #ifdef PTHREAD_MUTEX_ADAPTIVE_NP +- err = pthread_mutextattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); ++ err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); + if (err != 0) +- gold_fatal(_("pthread_mutextattr_settype failed: %s"), strerror(err)); ++ gold_fatal(_("pthread_mutexattr_settype failed: %s"), strerror(err)); + #endif + + err = pthread_mutex_init(&this->mutex_, &attr); |