From 4e1a7fa885457347b9ebbf6c03efe3584a320625 Mon Sep 17 00:00:00 2001 From: Jouk Date: Tue, 20 Dec 2016 10:06:32 +0100 Subject: [PATCH] strerror_r is not available on OpenVMS systems --- src/common/log.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/log.cpp b/src/common/log.cpp index fc74921b8d..12efed0667 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -1114,6 +1114,8 @@ static const wxChar* GetSysErrorMsg(wxChar* szBuf, size_t sizeBuf, unsigned long // necessarily copy anything to the buffer given; use return // value instead. errorMsg = strerror_r((int)nErrCode, buffer, sizeof(buffer)); +#elif defined( __VMS ) + errorMsg = strerror((int)nErrCode); #else // XSI-compliant strerror_r strerror_r((int)nErrCode, buffer, sizeof(buffer)); #endif