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

cvs diff -r1.3 -r1.4 pkgsrc/security/oath-toolkit/distinfo (expand / switch to unified 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
@@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
1$NetBSD: distinfo,v 1.3 2012/01/12 20:17:47 pettai Exp $ 1$NetBSD: distinfo,v 1.4 2012/04/07 13:16:23 joerg Exp $
2 2
3SHA1 (oath-toolkit-1.10.5.tar.gz) = b3fddfbc442c7cffe854ec159466155ef6ce0cbc 3SHA1 (oath-toolkit-1.10.5.tar.gz) = b3fddfbc442c7cffe854ec159466155ef6ce0cbc
4RMD160 (oath-toolkit-1.10.5.tar.gz) = 52c09b838b10df8536e3f122e1b829eec1f830f4 4RMD160 (oath-toolkit-1.10.5.tar.gz) = 52c09b838b10df8536e3f122e1b829eec1f830f4
5Size (oath-toolkit-1.10.5.tar.gz) = 1876773 bytes 5Size (oath-toolkit-1.10.5.tar.gz) = 1876773 bytes
 6SHA1 (patch-liboath_gl_fflush.c) = d2e61f4beb861dbb151ab576f2773d66698d0e7d
 7SHA1 (patch-liboath_gl_fseeko.c) = 0c19a2b46df8fd3e5ba7be0836063a1da5ae8e52

File Added: pkgsrc/security/oath-toolkit/patches/Attic/patch-liboath_gl_fflush.c.diff
--- 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

File Added: pkgsrc/security/oath-toolkit/patches/Attic/patch-liboath_gl_fseeko.c.diff
--- 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