From a86740d743de969471c628c71c75d6d6678ca12c Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Fri, 21 Apr 2017 14:15:59 +0000 Subject: community/mongodb: moved from testing --- testing/mongodb/fix-asio-strerror_r.patch | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 testing/mongodb/fix-asio-strerror_r.patch (limited to 'testing/mongodb/fix-asio-strerror_r.patch') diff --git a/testing/mongodb/fix-asio-strerror_r.patch b/testing/mongodb/fix-asio-strerror_r.patch deleted file mode 100644 index f2fe5cb1eb..0000000000 --- a/testing/mongodb/fix-asio-strerror_r.patch +++ /dev/null @@ -1,28 +0,0 @@ -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) - } -- cgit v1.2.3