summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-03-14 23:20:10 +0000
committerjoerg <joerg@pkgsrc.org>2012-03-14 23:20:10 +0000
commit3a42fdeea44751f7550257b781d409723ed8bb1a (patch)
tree7d5f2f1c526a1e119abbb24785ce3580eaf5160f
parent080ce0f1e4fb97321ce0d4d893cc9086ec3e6f93 (diff)
downloadpkgsrc-3a42fdeea44751f7550257b781d409723ed8bb1a.tar.gz
Fix build on newer NetBSD.
-rw-r--r--time/gcal/distinfo4
-rw-r--r--time/gcal/patches/patch-lib_fflush.c13
-rw-r--r--time/gcal/patches/patch-lib_fseeko.c13
3 files changed, 29 insertions, 1 deletions
diff --git a/time/gcal/distinfo b/time/gcal/distinfo
index ba8e7d8543a..a2c5c5e79d8 100644
--- a/time/gcal/distinfo
+++ b/time/gcal/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.6 2011/10/25 08:00:00 ryoon Exp $
+$NetBSD: distinfo,v 1.7 2012/03/14 23:20:10 joerg Exp $
SHA1 (gcal-3.6.1.tar.gz) = ad5b9507ce2aa794f4827ed0fcedc7676a293ae1
RMD160 (gcal-3.6.1.tar.gz) = 43e31e819340a6e8efdac0f751f4479e7f193119
Size (gcal-3.6.1.tar.gz) = 2912631 bytes
+SHA1 (patch-lib_fflush.c) = 9e6fdf88229c24bea7a130a852f4d5064b4a9862
+SHA1 (patch-lib_fseeko.c) = 3880d4229ec601be5e83c26377ad753c45b90f07
diff --git a/time/gcal/patches/patch-lib_fflush.c b/time/gcal/patches/patch-lib_fflush.c
new file mode 100644
index 00000000000..d094a06d424
--- /dev/null
+++ b/time/gcal/patches/patch-lib_fflush.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_fflush.c,v 1.1 2012/03/14 23:20:10 joerg Exp $
+
+--- lib/fflush.c.orig 2011-03-06 11:54:27.000000000 +0000
++++ lib/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/time/gcal/patches/patch-lib_fseeko.c b/time/gcal/patches/patch-lib_fseeko.c
new file mode 100644
index 00000000000..789efd1eb32
--- /dev/null
+++ b/time/gcal/patches/patch-lib_fseeko.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_fseeko.c,v 1.1 2012/03/14 23:20:10 joerg Exp $
+
+--- lib/fseeko.c.orig 2011-07-15 19:08:43.000000000 +0000
++++ lib/fseeko.c
+@@ -111,7 +111,7 @@ fseeko (FILE *fp, off_t offset, int when
+ #if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+ fp->_flags &= ~_IO_EOF_SEEN;
+ #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