From d9728810e0a95a5208ca425dc08ee30127ed2ba3 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 9 Dec 2016 15:57:45 +0100 Subject: [PATCH] mongodb: fix musl --- srcpkgs/mongodb/patches/fix-musl.diff | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/mongodb/patches/fix-musl.diff diff --git a/srcpkgs/mongodb/patches/fix-musl.diff b/srcpkgs/mongodb/patches/fix-musl.diff new file mode 100644 index 00000000000..ac2a87eab99 --- /dev/null +++ b/srcpkgs/mongodb/patches/fix-musl.diff @@ -0,0 +1,11 @@ +--- src/mongo/util/log.cpp.orig 2016-12-09 15:51:39.493596899 +0100 ++++ src/mongo/util/log.cpp 2016-12-09 15:51:52.286765108 +0100 +@@ -101,7 +101,7 @@ string errnoWithDescription(int errNumbe + char buf[kBuflen]; + char* msg{nullptr}; + +-#if defined(__GNUC__) && defined(_GNU_SOURCE) ++#if defined(__GNUC__) && defined(_GNU_SOURCE) && defined(__GLIBC__) + msg = strerror_r(errNumber, buf, kBuflen); + #elif defined(_WIN32) +