diff --git a/lib/System/Unix/Unix.h b/lib/System/Unix/Unix.h index b9eff46c46f..afb91005837 100644 --- a/lib/System/Unix/Unix.h +++ b/lib/System/Unix/Unix.h @@ -28,11 +28,6 @@ #include 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 }