mirror of
https://github.com/boostorg/asio.git
synced 2026-01-19 04:02:09 +00:00
Use correct form for strerror_r on NetBSD.
[SVN r34462]
This commit is contained in:
@@ -273,7 +273,7 @@ public:
|
||||
default:
|
||||
#if defined(__sun) || defined(__QNX__)
|
||||
return strerror(code_);
|
||||
#elif defined(__MACH__) && defined(__APPLE__)
|
||||
#elif defined(__MACH__) && defined(__APPLE__) || defined(__NetBSD__)
|
||||
try
|
||||
{
|
||||
char buf[256] = "";
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
}
|
||||
#elif defined(__sun) || defined(__QNX__)
|
||||
return strerror(code_);
|
||||
#elif defined(__MACH__) && defined(__APPLE__)
|
||||
#elif defined(__MACH__) && defined(__APPLE__) || defined(__NetBSD__)
|
||||
try
|
||||
{
|
||||
char buf[256] = "";
|
||||
|
||||
Reference in New Issue
Block a user