1*e1c7263eSThomas VeermanFrom aff3cc514eff051c4c4a838d6c927c816733b01a Mon Sep 17 00:00:00 2001 2*e1c7263eSThomas VeermanFrom: Thomas Veerman <tveerman@gmail.com> 3*e1c7263eSThomas VeermanDate: Fri, 10 Oct 2014 12:17:39 +0200 4*e1c7263eSThomas VeermanSubject: [PATCH] Fix build error on OSX 5*e1c7263eSThomas Veerman 6*e1c7263eSThomas VeermanWhen building Gold on OSX 10.9 and Clang 6.0, the build process fails 7*e1c7263eSThomas Veermanwith the error: 8*e1c7263eSThomas Veerman 9*e1c7263eSThomas Veerman In file included from /Users/thomas/minix/tools/binutils/../../external/gpl3/binutils/dist/gold/binary.cc:31: 10*e1c7263eSThomas Veerman In file included from /Users/thomas/minix/tools/binutils/../../external/gpl3/binutils/dist/gold/stringpool.h:23: 11*e1c7263eSThomas Veerman In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438: 12*e1c7263eSThomas Veerman In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107: 13*e1c7263eSThomas Veerman In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54: 14*e1c7263eSThomas Veerman /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:51:72: error: use of undeclared identifier 'do_not_use_isalnum_with_safe_ctype' 15*e1c7263eSThomas Veerman inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isalnum(int __c) {return isalnum(__c);} 16*e1c7263eSThomas Veerman 17*e1c7263eSThomas VeermanSigned-off-by: Thomas Veerman <tveerman@gmail.com> 18*e1c7263eSThomas Veerman--- 19*e1c7263eSThomas Veerman gold/binary.cc | 2 +- 20*e1c7263eSThomas Veerman 1 file changed, 1 insertion(+), 1 deletion(-) 21*e1c7263eSThomas Veerman 22*e1c7263eSThomas Veermandiff --git a/gold/binary.cc b/gold/binary.cc 23*e1c7263eSThomas Veermanindex 4dab52c..77a78f0 100644 24*e1c7263eSThomas Veerman--- a/gold/binary.cc 25*e1c7263eSThomas Veerman+++ b/gold/binary.cc 26*e1c7263eSThomas Veerman@@ -24,10 +24,10 @@ 27*e1c7263eSThomas Veerman 28*e1c7263eSThomas Veerman #include <cerrno> 29*e1c7263eSThomas Veerman #include <cstring> 30*e1c7263eSThomas Veerman+#include "stringpool.h" 31*e1c7263eSThomas Veerman #include "safe-ctype.h" 32*e1c7263eSThomas Veerman 33*e1c7263eSThomas Veerman #include "elfcpp.h" 34*e1c7263eSThomas Veerman-#include "stringpool.h" 35*e1c7263eSThomas Veerman #include "fileread.h" 36*e1c7263eSThomas Veerman #include "output.h" 37*e1c7263eSThomas Veerman #include "binary.h" 38*e1c7263eSThomas Veerman-- 39*e1c7263eSThomas Veerman1.7.12.4 (Apple Git-37) 40*e1c7263eSThomas Veerman 41