summaryrefslogtreecommitdiff
path: root/archivers/gzip/patches/patch-lib_fflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/gzip/patches/patch-lib_fflush.c')
-rw-r--r--archivers/gzip/patches/patch-lib_fflush.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/archivers/gzip/patches/patch-lib_fflush.c b/archivers/gzip/patches/patch-lib_fflush.c
new file mode 100644
index 00000000000..50717f45cdd
--- /dev/null
+++ b/archivers/gzip/patches/patch-lib_fflush.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_fflush.c,v 1.1 2013/06/10 11:56:58 ryoon Exp $
+
+--- lib/fflush.c.orig 2012-06-17 17:05:17.000000000 +0000
++++ lib/fflush.c
+@@ -94,7 +94,7 @@ update_fpos_cache (FILE *fp _GL_UNUSED_P
+ off_t pos _GL_UNUSED_PARAMETER)
+ {
+ #if 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