From: HIRAMATSU Yoshifumi Date: Tue, 14 Apr 2015 10:16:47 +0000 (+0100) Subject: fseeko: fix build failure on NetBSD >= 6 X-Git-Tag: v1.0~7101 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f2c88dc1288e425e5eb259a366b8ade4e1632bc6;p=gnulib.git fseeko: fix build failure on NetBSD >= 6 * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset from 'fpos_t struct' to __off_t, which is a typedef of __int64_t. --- diff --git a/ChangeLog b/ChangeLog index 0bf9716ef3..df79036be7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-04-14 HIRAMATSU Yoshifumi + + fseeko: fix build failure on NetBSD >= 6 (trivial) + * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset + from 'fpos_t struct' to __off_t, which is a typedef of __int64_t. + 2015-04-09 Paul Eggert gitlog-to-changelog: port to MS-Windows diff --git a/lib/fseeko.c b/lib/fseeko.c index db67e0277a..045eb5c5f3 100644 --- a/lib/fseeko.c +++ b/lib/fseeko.c @@ -128,7 +128,7 @@ fseeko (FILE *fp, off_t offset, int whence) fp->_offset = pos; #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Android */ -# if defined __CYGWIN__ +# if defined __CYGWIN__ || (defined __NetBSD__ && __NetBSD_Version__ >= 600000000) /* fp_->_offset is typed as an integer. */ fp_->_offset = pos; # else