aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb/fix-strerror_r.patch
blob: 3dd19b38217e90dedd7ab5fd14016be5c192139f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- mongodb-src-r3.6.1/src/mongo/util/errno_util.cpp.orig
+++ mongodb-src-r3.6.1/src/mongo/util/errno_util.cpp
@@ -58,9 +58,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 |