[llvm-commits] CVS: llvm/lib/System/Unix/Unix.h
Reid Spencer
reid at x10sys.com
Sun Nov 14 14:11:32 PST 2004
Changes in directory llvm/lib/System/Unix:
Unix.h updated: 1.7 -> 1.8
---
Log message:
Forget strerror_r, it causes problems. Fix later when threading matters
---
Diffs of the changes: (+0 -5)
Index: llvm/lib/System/Unix/Unix.h
diff -u llvm/lib/System/Unix/Unix.h:1.7 llvm/lib/System/Unix/Unix.h:1.8
--- llvm/lib/System/Unix/Unix.h:1.7 Mon Oct 4 19:56:46 2004
+++ llvm/lib/System/Unix/Unix.h Sun Nov 14 16:10:54 2004
@@ -28,11 +28,6 @@
#include <string>
inline void ThrowErrno(const std::string& prefix) {
-#if defined __USE_XOPEN2K || defined __USE_MISC
char buffer[MAXPATHLEN];
- strerror_r(errno,buffer, MAXPATHLEN);
- throw prefix + ": " + buffer;
-#else
throw prefix + ": " + strerror(errno);
-#endif
}
More information about the llvm-commits
mailing list