$NetBSD: patch-ab,v 1.12 2012/01/31 00:58:43 christos Exp $ --- lib/fseeko.c.orig 2011-03-01 11:39:28.000000000 -0500 +++ lib/fseeko.c 2012-01-30 19:56:49.000000000 -0500 @@ -109,7 +109,7 @@ #if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ fp->_flags &= ~_IO_EOF_SEEN; #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */ -# if defined __CYGWIN__ +# if defined(__CYGWIN__) || defined(__NetBSD__) /* fp_->_offset is typed as an integer. */ fp_->_offset = pos; # else