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