From 0a0876270a8357b40e52991d9b1139856d95e11f Mon Sep 17 00:00:00 2001 From: Christopher Zimmermann Date: Fri, 13 Dec 2019 20:38:22 +0100 Subject: [PATCH] add feature test macro to allow usage of strnlen() --- src/zlib_stubs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zlib_stubs.c b/src/zlib_stubs.c index 070bd91..0d9aa29 100644 --- a/src/zlib_stubs.c +++ b/src/zlib_stubs.c @@ -14,6 +14,7 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#define _POSIX_C_SOURCE 200809L #include #include