blob: 83559b5dbf1b4b606903d55fa9d387679d0f6787 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-lib_fseeko.c,v 1.2 2012/08/11 18:51:16 ryoon Exp $
--- lib/fseeko.c.orig 2012-05-13 15:47:48.000000000 +0000
+++ lib/fseeko.c
@@ -121,7 +121,7 @@ fseeko (FILE *fp, off_t offset, int when
fp->_flags &= ~_IO_EOF_SEEN;
fp->_offset = pos;
#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
|