mongodb: fix musl
This commit is contained in:
parent
113cfbc56a
commit
d9728810e0
1 changed files with 11 additions and 0 deletions
11
srcpkgs/mongodb/patches/fix-musl.diff
Normal file
11
srcpkgs/mongodb/patches/fix-musl.diff
Normal file
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue