summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-15 18:05:46 +0000
committerDan Gohman <gohman@apple.com>2009-06-15 18:05:46 +0000
commit970da81e8a5f2b4f522cd45b118784db5e8e56b7 (patch)
treefebe926823dd2e1d7d0ed82da0fb3d07333411cc /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent475501b01c657561838a580e1a22ef618c1f5ecf (diff)
glibc has two versions of strerror_r, a standards compliant one and a GNU
specific one. The GNU one is chosen when _GNU_SOURCE is defined. g++ always defines _GNU_SOURCE on linux platforms because glibc's headers won't compile in C++ mode without it. The GNU strerror_r doesn't always modify the buffer which causes empty error messages on linux. This patch changes MakeErrMsg to use the return value of strerror_r to get the string instead of assuming the buffer will be modified, on GLIBC. Patch by Benjamin Kramer! llvm-svn: 73396
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions