diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-01-27 10:26:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-01-27 10:27:33 +0000 |
commit | 20eb1d0779b0da262cad1dc85486f1c111dd5420 (patch) | |
tree | bd23a20e9e33d81897bae53862d6a81408792515 /testing/mongodb/fix-asio-strerror_r.patch | |
parent | d8c64a855f66683d6a5db7815b1854a9f1113813 (diff) | |
download | aports-20eb1d0779b0da262cad1dc85486f1c111dd5420.tar.bz2 aports-20eb1d0779b0da262cad1dc85486f1c111dd5420.tar.xz |
testing/mongodb: upgrade to 3.2.1
Diffstat (limited to 'testing/mongodb/fix-asio-strerror_r.patch')
-rw-r--r-- | testing/mongodb/fix-asio-strerror_r.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/mongodb/fix-asio-strerror_r.patch b/testing/mongodb/fix-asio-strerror_r.patch new file mode 100644 index 0000000000..f2fe5cb1eb --- /dev/null +++ b/testing/mongodb/fix-asio-strerror_r.patch @@ -0,0 +1,28 @@ +https://github.com/chriskohlhoff/asio/issues/94 + +diff --git a/src/third_party/asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp b/src/third_party/asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp +index 4e7badb..0eeae88 100644 +--- a/src/third_party/asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp ++++ b/src/third_party/asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp +@@ -97,17 +97,14 @@ public: + #if defined(__sun) || defined(__QNX__) || defined(__SYMBIAN32__) + using namespace std; + return strerror(value); +-#elif defined(__MACH__) && defined(__APPLE__) \ +- || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) \ +- || defined(_AIX) || defined(__hpux) || defined(__osf__) \ +- || defined(__ANDROID__) ++#elif defined(__GLIBC__) && defined(_GNU_SOURCE) ++ char buf[256] = ""; ++ return strerror_r(value, buf, sizeof(buf)); ++#else + char buf[256] = ""; + using namespace std; + strerror_r(value, buf, sizeof(buf)); + return buf; +-#else +- char buf[256] = ""; +- return strerror_r(value, buf, sizeof(buf)); + #endif + #endif // defined(ASIO_WINDOWS) + } |