]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed warning about implicit declaration of function fileno().
authorNathan Moinvaziri <nathan@nathanm.com>
Fri, 10 Jul 2020 21:06:38 +0000 (14:06 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 12 Jul 2020 10:30:07 +0000 (12:30 +0200)
test/fuzz/minigzip_fuzzer.c

index a4bd112d3da6fcbd2592c432678dd4346ac1ade2..92ccedc9dcdd5df7ee413132cb45eda81ef7a3f6 100644 (file)
@@ -12,6 +12,8 @@
  * real thing.
  */
 
+#define _POSIX_SOURCE 1  /* This file needs POSIX for fileno(). */
+
 #include "zbuild.h"
 #ifdef ZLIB_COMPAT
 #  include "zlib.h"