[llvm-commits] [PATCH] fix build on g++-4.3

Török Edwin edwintorok at gmail.com
Fri Apr 4 04:02:12 PDT 2008


Hi,

Target.cpp doesn't build with g++-4.3, attached patch fixes it. Ok to
commit?

make[2]: Entering directory `/home/edwin/llvm-svn/llvm/lib/Target'
llvm[2]: Compiling Target.cpp for Release build
Target.cpp: In function ‘char*
LLVMCopyStringRepOfTargetData(LLVMOpaqueTargetData*)’:
Target.cpp:31: error: ‘strdup’ was not declared in this scope
make[2]: *** [/home/edwin/llvm-svn/llvm/lib/Target/Release/Target.o] Error 1

Best regards,
--Edwin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: target.patch
Type: text/x-diff
Size: 342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080404/1dfe2454/attachment.patch>


More information about the llvm-commits mailing list