pkgsrc/sysutils/libvirt/patches/patch-gnulib-lib-fseeko.c
agc 0b216103f5 Update sysutils/libvirt from 0.9.3 to 1.2.1
Reason for updating: numerous security vulnerabilities have been fixed,
and many changes made - functional and fixes. The list is really too long
to include here:

	-rw-r--r--  1 agc  wheel  3437489 Jan 24 18:26 /tmp/news
2014-01-25 02:54:27 +00:00

15 lines
543 B
C

$NetBSD: patch-gnulib-lib-fseeko.c,v 1.2 2014/01/25 02:54:27 agc Exp $
Fix for fpos_t from joerg
--- gnulib/lib/fseeko.c 2014/01/25 02:09:09 1.1
+++ gnulib/lib/fseeko.c 2014/01/25 02:17:10
@@ -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__)
/* fp_->_offset is typed as an integer. */
fp_->_offset = pos;
# else