summaryrefslogtreecommitdiff
path: root/src/mongo/util/errno_util.cpp
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2018-06-14 10:27:17 -0400
committerGabriel Russell <gabriel.russell@mongodb.com>2018-06-14 15:02:28 -0400
commit13c65fa47bc60b785bc9c6a90bd68d5167c34ba7 (patch)
tree3e0042f8eae74ba1576b9ba10d1d14b6061d1619 /src/mongo/util/errno_util.cpp
parenta9ad37bdea390cbf96122382e3a358287b86ac2f (diff)
downloadmongo-13c65fa47bc60b785bc9c6a90bd68d5167c34ba7.tar.gz
SERVER-34006 build android embedded with api version 21
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 fca401aa129..aa6733de737 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)
+#if defined(__GNUC__) && defined(_GNU_SOURCE) && (__ANDROID_API__ > 22)
msg = strerror_r(errNumber, buf, kBuflen);
#elif defined(_WIN32)