summaryrefslogtreecommitdiff
path: root/src/mongo/util/errno_util.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2018-06-04 10:40:41 -0400
committerAndrew Morrow <acm@mongodb.com>2018-07-17 15:31:15 -0400
commitd175ae80e6af61f9f37bdebbde3b2b5115ae2a9f (patch)
tree491b4c6d5ca985c4a31f2819b35d4d6a0683e631 /src/mongo/util/errno_util.cpp
parent1c0bce5f9792f0f6d4f26cd041a0c60c0398bd5e (diff)
downloadmongo-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.cpp2
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)