extended conditional compilation to __SUNPRO_CC

This commit is contained in:
osx2000 2016-11-11 14:28:45 +01:00 committed by GitHub
parent e9fc4ac095
commit 3cd497ee95
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ inline std::string errno_str(int err_num)
else
return "Unkown error";
#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(ANDROID) || \
#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(ANDROID) || defined(__SUNPRO_CC) || \
((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) // posix version
if (strerror_r(err_num, buf, buf_size) == 0)