]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed minigzip_fuzzer not compiling on latest macOS due to missing _POSIX_C_SOURCE.
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Sat, 31 Oct 2020 02:33:11 +0000 (19:33 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 2 Nov 2020 13:42:58 +0000 (14:42 +0100)
test/fuzz/minigzip_fuzzer.c

index 92ccedc9dcdd5df7ee413132cb45eda81ef7a3f6..1f19126f44da3bc6b38b26d075b4741d2ab8c800 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #define _POSIX_SOURCE 1  /* This file needs POSIX for fileno(). */
+#define _POSIX_C_SOURCE 200112  /* For snprintf(). */
 
 #include "zbuild.h"
 #ifdef ZLIB_COMPAT