void-packages/srcpkgs/png++/patches/musl-error.patch

12 lines
477 B
Diff

--- error.hpp 2015-10-25 20:42:45.000000000 +0100
+++ - 2018-11-07 12:49:36.093450988 +0100
@@ -100,7 +100,7 @@
strerror_s(buf, ERRBUF_SIZE, errnum);
return std::string(buf);
#else
-#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE
+#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) || !defined(__GLIBC__)
strerror_r(errnum, buf, ERRBUF_SIZE);
return std::string(buf);
#else