aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb/fix-log.patch
blob: e7bc8bef5d42d3b9e50ffc78e02c7df8f18bd83a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/mongo/util/log.cpp
+++ b/src/mongo/util/log.cpp
@@ -101,9 +101,7 @@
     char buf[kBuflen];
     char* msg{nullptr};
 
-#if defined(__GNUC__) && defined(_GNU_SOURCE)
-    msg = strerror_r(errNumber, buf, kBuflen);
-#elif defined(_WIN32)
+#if defined(_WIN32)
 
     LPWSTR errorText = nullptr;
     FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER |