diff options
author | joerg <joerg@pkgsrc.org> | 2012-04-07 13:16:23 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-04-07 13:16:23 +0000 |
commit | f6fa5f47bd8144d184ce76656360cdf5d090da27 (patch) | |
tree | a05a06f484f7917cac632abca063f6b9b95fd636 /security/oath-toolkit | |
parent | 45dfc9767cb38897d1d76d75a07ba3e3eb39557d (diff) | |
download | pkgsrc-f6fa5f47bd8144d184ce76656360cdf5d090da27.tar.gz |
Fix build on NetBSD/current.
Diffstat (limited to 'security/oath-toolkit')
-rw-r--r-- | security/oath-toolkit/distinfo | 4 | ||||
-rw-r--r-- | security/oath-toolkit/patches/patch-liboath_gl_fflush.c.diff | 16 | ||||
-rw-r--r-- | security/oath-toolkit/patches/patch-liboath_gl_fseeko.c.diff | 16 |
3 files changed, 35 insertions, 1 deletions
diff --git a/security/oath-toolkit/distinfo b/security/oath-toolkit/distinfo index 72f60b6cbe8..79dc33374e2 100644 --- a/security/oath-toolkit/distinfo +++ b/security/oath-toolkit/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.3 2012/01/12 20:17:47 pettai Exp $ +$NetBSD: distinfo,v 1.4 2012/04/07 13:16:23 joerg Exp $ SHA1 (oath-toolkit-1.10.5.tar.gz) = b3fddfbc442c7cffe854ec159466155ef6ce0cbc RMD160 (oath-toolkit-1.10.5.tar.gz) = 52c09b838b10df8536e3f122e1b829eec1f830f4 Size (oath-toolkit-1.10.5.tar.gz) = 1876773 bytes +SHA1 (patch-liboath_gl_fflush.c) = d2e61f4beb861dbb151ab576f2773d66698d0e7d +SHA1 (patch-liboath_gl_fseeko.c) = 0c19a2b46df8fd3e5ba7be0836063a1da5ae8e52 diff --git a/security/oath-toolkit/patches/patch-liboath_gl_fflush.c.diff b/security/oath-toolkit/patches/patch-liboath_gl_fflush.c.diff new file mode 100644 index 00000000000..e66e0f320f1 --- /dev/null +++ b/security/oath-toolkit/patches/patch-liboath_gl_fflush.c.diff @@ -0,0 +1,16 @@ +--- 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 diff --git a/security/oath-toolkit/patches/patch-liboath_gl_fseeko.c.diff b/security/oath-toolkit/patches/patch-liboath_gl_fseeko.c.diff new file mode 100644 index 00000000000..967295bef6b --- /dev/null +++ b/security/oath-toolkit/patches/patch-liboath_gl_fseeko.c.diff @@ -0,0 +1,16 @@ +--- 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 |