From f2c88dc1288e425e5eb259a366b8ade4e1632bc6 Mon Sep 17 00:00:00 2001 From: HIRAMATSU Yoshifumi <hiramatu@boreas.dti.ne.jp> Date: Tue, 14 Apr 2015 11:16:47 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/fseeko.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0bf9716ef3..df79036be7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-04-14 HIRAMATSU Yoshifumi <hiramatu@boreas.dti.ne.jp> + + 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 <eggert@cs.ucla.edu> 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 -- 2.39.5