589d510c8f
Addresses PR pkg/53826, further details are provided there. This is a temporary fix, until the next m4 release. No PKGREVISION, because there should be no change to existing packages, it addresses build failures only.
17 lines
934 B
C
17 lines
934 B
C
$NetBSD: patch-lib_freading.c,v 1.1 2019/01/06 05:45:30 gutteridge Exp $
|
|
|
|
Work around glibc changes that broke dependent gnulib functionality.
|
|
Patch from: http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=74d9d6a293d7462dea8f83e7fc5ac792e956a0ad
|
|
|
|
--- lib/freading.c.orig 2016-12-31 13:54:41.000000000 +0000
|
|
+++ lib/freading.c
|
|
@@ -31,7 +31,8 @@ freading (FILE *fp)
|
|
/* Most systems provide FILE as a struct and the necessary bitmask in
|
|
<stdio.h>, 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 || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
|
|
+ /* GNU libc, BeOS, Haiku, Linux libc5 */
|
|
return ((fp->_flags & _IO_NO_WRITES) != 0
|
|
|| ((fp->_flags & (_IO_NO_READS | _IO_CURRENTLY_PUTTING)) == 0
|
|
&& fp->_IO_read_base != NULL));
|