diff options
author | Andrew Morrow <acm@mongodb.com> | 2018-06-04 10:40:41 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2018-07-17 15:31:15 -0400 |
commit | d175ae80e6af61f9f37bdebbde3b2b5115ae2a9f (patch) | |
tree | 491b4c6d5ca985c4a31f2819b35d4d6a0683e631 /src/mongo/util/errno_util.cpp | |
parent | 1c0bce5f9792f0f6d4f26cd041a0c60c0398bd5e (diff) | |
download | mongo-d175ae80e6af61f9f37bdebbde3b2b5115ae2a9f.tar.gz |
SERVER-36147 Add basic support for targeting emscripten
Diffstat (limited to 'src/mongo/util/errno_util.cpp')
-rw-r--r-- | src/mongo/util/errno_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/errno_util.cpp b/src/mongo/util/errno_util.cpp index aa6733de737..5f34233af10 100644 --- a/src/mongo/util/errno_util.cpp +++ b/src/mongo/util/errno_util.cpp @@ -58,7 +58,7 @@ std::string errnoWithDescription(int errNumber) { char buf[kBuflen]; char* msg{nullptr}; -#if defined(__GNUC__) && defined(_GNU_SOURCE) && (__ANDROID_API__ > 22) +#if defined(__GNUC__) && defined(_GNU_SOURCE) && !(__ANDROID_API__ <= 22) && !defined(EMSCRIPTEN) msg = strerror_r(errNumber, buf, kBuflen); #elif defined(_WIN32) |