Sat Apr 7 13:16:24 2012 UTC ()
Fix build on NetBSD/current.
(joerg)
diff -r1.3 -r1.4 pkgsrc/security/oath-toolkit/distinfo
diff -r0 -r1.1 pkgsrc/security/oath-toolkit/patches/patch-liboath_gl_fflush.c.diff
diff -r0 -r1.1 pkgsrc/security/oath-toolkit/patches/patch-liboath_gl_fseeko.c.diff
--- pkgsrc/security/oath-toolkit/distinfo 2012/01/12 20:17:47 1.3
+++ pkgsrc/security/oath-toolkit/distinfo 2012/04/07 13:16:23 1.4
--- security/oath-toolkit/patches/patch-liboath_gl_fflush.c
+++ security/oath-toolkit/patches/patch-liboath_gl_fflush.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-liboath_gl_fflush.c.diff,v 1.1 2012/04/07 13:16:24 joerg Exp $
+
+--- liboath/gl/fflush.c.orig 2012-01-03 19:18:22.000000000 +0000
++++ liboath/gl/fflush.c
+@@ -91,7 +91,7 @@ static inline void
+ update_fpos_cache (FILE *fp, off_t pos)
+ {
+ #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
--- security/oath-toolkit/patches/patch-liboath_gl_fseeko.c
+++ security/oath-toolkit/patches/patch-liboath_gl_fseeko.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-liboath_gl_fseeko.c.diff,v 1.1 2012/04/07 13:16:24 joerg Exp $
+
+--- liboath/gl/fseeko.c.orig 2012-01-03 19:18:22.000000000 +0000
++++ liboath/gl/fseeko.c
+@@ -109,7 +109,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, MacOS X, Cygwin */
+-# if defined __CYGWIN__
++# if defined(__CYGWIN__) || defined(__NetBSD__)
+ /* fp_->_offset is typed as an integer. */
+ fp_->_offset = pos;
+ # else