summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-03-06 23:38:04 +0000
committerjoerg <joerg@pkgsrc.org>2012-03-06 23:38:04 +0000
commitcb44dea68407bc4ea9c70e14faba78844c91bc1b (patch)
tree55896c8f0dafef45e7886453673d26fb1d5f9c97 /sysutils
parentdd8322de22bd4c87569b7c30e7571c6d3e326e63 (diff)
downloadpkgsrc-cb44dea68407bc4ea9c70e14faba78844c91bc1b.tar.gz
Fix build on recent NetBSD
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/coreutils/distinfo4
-rw-r--r--sysutils/coreutils/patches/patch-lib-fflush.c13
-rw-r--r--sysutils/coreutils/patches/patch-lib-fseeko.c13
3 files changed, 29 insertions, 1 deletions
diff --git a/sysutils/coreutils/distinfo b/sysutils/coreutils/distinfo
index ecefc8b3110..ce58534f17d 100644
--- a/sysutils/coreutils/distinfo
+++ b/sysutils/coreutils/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.21 2011/10/03 16:17:08 jmmv Exp $
+$NetBSD: distinfo,v 1.22 2012/03/06 23:38:04 joerg Exp $
SHA1 (coreutils-8.13.tar.gz) = 83b7e25661c439ecac55e99ff0dd816b9ff478a5
RMD160 (coreutils-8.13.tar.gz) = fb24a15641581ba57482f4c1c1ecfc32752dbd9d
Size (coreutils-8.13.tar.gz) = 11660808 bytes
+SHA1 (patch-lib-fflush.c) = e52e0da2127c5debbb14e967b1e206226efdaa4a
+SHA1 (patch-lib-fseeko.c) = ab62b8c7faa9a601191475c040c7466e1bd52fe1
diff --git a/sysutils/coreutils/patches/patch-lib-fflush.c b/sysutils/coreutils/patches/patch-lib-fflush.c
new file mode 100644
index 00000000000..1b0ca236f1c
--- /dev/null
+++ b/sysutils/coreutils/patches/patch-lib-fflush.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib-fflush.c,v 1.1 2012/03/06 23:38:04 joerg Exp $
+
+--- lib/fflush.c.orig 2011-08-19 16:09:37.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/sysutils/coreutils/patches/patch-lib-fseeko.c b/sysutils/coreutils/patches/patch-lib-fseeko.c
new file mode 100644
index 00000000000..bc626a5221d
--- /dev/null
+++ b/sysutils/coreutils/patches/patch-lib-fseeko.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib-fseeko.c,v 1.1 2012/03/06 23:38:04 joerg Exp $
+
+--- lib/fseeko.c.orig 2011-08-12 08:05:46.000000000 +0000
++++ lib/fseeko.c
+@@ -111,7 +111,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