summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Unix.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/System/Unix/Unix.h')
-rw-r--r--llvm/lib/System/Unix/Unix.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/System/Unix/Unix.h b/llvm/lib/System/Unix/Unix.h
index b9eff46c46f..afb91005837 100644
--- a/llvm/lib/System/Unix/Unix.h
+++ b/llvm/lib/System/Unix/Unix.h
@@ -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
}
OpenPOWER on IntegriCloud