Use correct strerror_r version for HP-UX and Tru64.

This commit is contained in:
chris_kohlhoff 2007-10-24 13:02:37 +00:00
parent ac5b73fa9b
commit 58069305b9

View File

@ -84,7 +84,7 @@ inline std::string error_code::message() const
return strerror(value_);
#elif defined(__MACH__) && defined(__APPLE__) \
|| defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) \
|| defined(_AIX)
|| defined(_AIX) || defined(__hpux) || defined(__osf__)
char buf[256] = "";
strerror_r(value_, buf, sizeof(buf));
return buf;