summaryrefslogtreecommitdiff
path: root/time/gcal/patches/patch-lib_fseeko.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/gcal/patches/patch-lib_fseeko.c')
-rw-r--r--time/gcal/patches/patch-lib_fseeko.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/time/gcal/patches/patch-lib_fseeko.c b/time/gcal/patches/patch-lib_fseeko.c
new file mode 100644
index 00000000000..789efd1eb32
--- /dev/null
+++ b/time/gcal/patches/patch-lib_fseeko.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_fseeko.c,v 1.1 2012/03/14 23:20:10 joerg Exp $
+
+--- lib/fseeko.c.orig 2011-07-15 19:08:43.000000000 +0000
++++ lib/fseeko.c
+@@ -111,7 +111,7 @@ fseeko (FILE *fp, off_t offset, int when
+ #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