summaryrefslogtreecommitdiff
path: root/patches/binutils/2.25.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch
diff options
context:
space:
mode:
authorRay Donnelly <mingw.android@gmail.com>2015-11-22 14:38:18 (GMT)
committerRay Donnelly <mingw.android@gmail.com>2015-11-22 14:38:22 (GMT)
commitf001b0605ec78096c78793aafca6d58fa74d47ab (patch)
treee54c5e8c42d8574b768f52435ea83bbb7ff98b67 /patches/binutils/2.25.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch
parentead1358ae5da44222d1cab6f919db59c33dd7431 (diff)
darwin-host: Three build fixes for binutils 2.25{,.1}
1. Need to include <string> not <cstring> in gold's binary.cc 2. wcsncasecmp isn't always defined in Mac SDK 3. PTHREAD_ONCE_INIT is {0x30B1BCBA, {0}}, so can't be trivially assigned in an intializer list. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
Diffstat (limited to 'patches/binutils/2.25.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch')
-rw-r--r--patches/binutils/2.25.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/binutils/2.25.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch b/patches/binutils/2.25.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch
new file mode 100644
index 0000000..33441cc
--- /dev/null
+++ b/patches/binutils/2.25.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch
@@ -0,0 +1,11 @@
+--- binutils-2.25.orig/gold/binary.cc 2015-06-09 10:48:32.000000000 +0100
++++ binutils-2.25/gold/binary.cc 2015-06-09 10:49:23.000000000 +0100
+@@ -23,7 +23,7 @@
+ #include "gold.h"
+
+ #include <cerrno>
+-#include <cstring>
++#include <string>
+ #include "safe-ctype.h"
+
+ #include "elfcpp.h"