m4 1.4.17 fails to compile on NetBSD 6.1.5 amd64:

fseeko.c: In function 'rpl_fseeko':
fseeko.c:143:22: error: incompatible types when assigning to type 
'__off_t' from type 'fpos_t'

The attached patch allows compilation to complete.

--- lib/fseeko.c        2014-12-04 15:23:21.000000000 -0700
+++ lib/fseeko.c.orig   2014-12-04 15:08:07.000000000 -0700
@@ -125,7 +125,7 @@
       fp->_flags &= ~_IO_EOF_SEEN;
       fp->_offset = pos;
 #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, 
DragonFly, Mac OS X, Cygwin */
-# if defined __CYGWIN__ || __NetBSD__
+# if defined __CYGWIN__
       /* fp_->_offset is typed as an integer.  */
       fp_->_offset = pos;
 # else

Reply via email to