diff options
author | Marc Vertes <mvertes@free.fr> | 2018-01-02 11:20:46 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-01-04 07:06:40 +0000 |
commit | e94cb28568e3712b39d5d37f37c5cc8b2bf32f0a (patch) | |
tree | 83becb8e23a0e12d4578312074a9df049db58e92 /community/mongodb/fix-strerror_r.patch | |
parent | bca8323793a4c8ddfdb1f7f865cbfa62e93056aa (diff) | |
download | aports-e94cb28568e3712b39d5d37f37c5cc8b2bf32f0a.tar.bz2 aports-e94cb28568e3712b39d5d37f37c5cc8b2bf32f0a.tar.xz |
community/mongodb: upgrade to 3.6.1
Diffstat (limited to 'community/mongodb/fix-strerror_r.patch')
-rw-r--r-- | community/mongodb/fix-strerror_r.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/community/mongodb/fix-strerror_r.patch b/community/mongodb/fix-strerror_r.patch new file mode 100644 index 0000000000..3dd19b3821 --- /dev/null +++ b/community/mongodb/fix-strerror_r.patch @@ -0,0 +1,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 | |