mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
14 lines
436 B
Diff
14 lines
436 B
Diff
--- 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 |
|