1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/non-free/mongodb/fix-strerror_r.patch
Drew DeVault 8a901de31f community/mongodb: expunge nonfree software
Upstream has switched to a nonfree license.
2019-04-03 08:49:55 +00:00

13 lines
462 B
Diff

--- mongodb-src-r4.0.0/src/mongo/util/errno_util.cpp.orig
+++ mongodb-src-r4.0.0/src/mongo/util/errno_util.cpp
@@ -58,9 +58,7 @@
char buf[kBuflen];
char* msg{nullptr};
-#if defined(__GNUC__) && defined(_GNU_SOURCE) && (__ANDROID_API__ > 22)
- msg = strerror_r(errNumber, buf, kBuflen);
-#elif defined(_WIN32)
+#if defined(_WIN32)
LPWSTR errorText = nullptr;
FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER |