summaryrefslogtreecommitdiff
path: root/archivers/gzip/patches/patch-lib_fseeko.c
blob: 5f01b1be637940e85bf0748992d09c78f12451c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-lib_fseeko.c,v 1.2 2013/06/11 08:28:30 adam Exp $

--- lib/fseeko.c.orig	2013-04-07 01:59:54.000000000 +0000
+++ lib/fseeko.c
@@ -119,7 +119,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, Mac OS X, Cygwin */
-# if defined __CYGWIN__
+# if defined(__CYGWIN__) || defined(__NetBSD__)
       /* fp_->_offset is typed as an integer.  */
       fp_->_offset = pos;
 # else