[llvm-commits] [PATCH] work around a nasty g++/glibc incompatiblity
Benjamin Kramer
benny.kra at googlemail.com
Sat Jun 13 14:58:54 PDT 2009
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. The attached patch fixes this by falling back to the less
threadsafe method if _GNU_SOURCE is defined.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibcstrerror_r.patch
Type: application/octet-stream
Size: 848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090613/b8e78025/attachment.obj>
-------------- next part --------------
More information about the llvm-commits
mailing list