diff --git a/srcpkgs/gzip/patches/gnulib-fseterr.patch b/srcpkgs/gzip/patches/gnulib-fseterr.patch new file mode 100644 index 00000000000..33e488f54a2 --- /dev/null +++ b/srcpkgs/gzip/patches/gnulib-fseterr.patch @@ -0,0 +1,11 @@ +--- lib/fseterr.c ++++ lib/fseterr.c +@@ -29,7 +29,7 @@ fseterr (FILE *fp) + /* Most systems provide FILE as a struct and the necessary bitmask in + , because they need it for implementing getc() and putc() as + fast macros. */ +-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ ++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ + fp->_flags |= _IO_ERR_SEEN; + #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ + /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */