summaryrefslogtreecommitdiff
path: root/archivers/gsharutils/patches/patch-lib_fseeko.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/gsharutils/patches/patch-lib_fseeko.c')
-rw-r--r--archivers/gsharutils/patches/patch-lib_fseeko.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/archivers/gsharutils/patches/patch-lib_fseeko.c b/archivers/gsharutils/patches/patch-lib_fseeko.c
new file mode 100644
index 00000000000..d7cbd473067
--- /dev/null
+++ b/archivers/gsharutils/patches/patch-lib_fseeko.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_fseeko.c,v 1.1 2015/04/07 22:08:36 hiramatsu Exp $
+
+Definition of FILE struct is changed on NetBSD 6.
+
+--- lib/fseeko.c.orig 2015-04-05 22:42:44.000000000 +0900
++++ lib/fseeko.c 2015-04-05 22:42:52.000000000 +0900
+@@ -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__
++# if defined __CYGWIN__ || (defined __NetBSD__ && __NetBSD_Version__ >= 600000000)
+ /* fp_->_offset is typed as an integer. */
+ fp_->_offset = pos;
+ # else