From 185ce0d2b64957c4d8f6c4b044d4ab63c602ca0e Mon Sep 17 00:00:00 2001 From: sbd Date: Fri, 9 Mar 2012 06:14:39 +0000 Subject: Fix build on Liunx --- archivers/mousetar/distinfo | 4 ++-- archivers/mousetar/patches/patch-aa | 13 ++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/archivers/mousetar/distinfo b/archivers/mousetar/distinfo index 774c8b818a0..399d4c842b8 100644 --- a/archivers/mousetar/distinfo +++ b/archivers/mousetar/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2012/02/29 18:14:31 hans Exp $ +$NetBSD: distinfo,v 1.6 2012/03/09 06:14:39 sbd Exp $ SHA1 (tar.c) = 0fcce941a7e5beee2646b3b7d7dee5d6cf22f455 RMD160 (tar.c) = 78561e1ef3a55f1b77c8949a7b7a6efb4904d7ef @@ -6,4 +6,4 @@ Size (tar.c) = 286925 bytes SHA1 (tar.man) = a43498f78f3122edf1970a471c9bd313c0ace2f1 RMD160 (tar.man) = 3a295603a2381ea8417b4ce77b73b50ca42fd5e6 Size (tar.man) = 49336 bytes -SHA1 (patch-aa) = ec66de535056119c1f5a65266436486b59a3422c +SHA1 (patch-aa) = 8d1b0d31f1eabb3bc6528579cca8df50d4f6066d diff --git a/archivers/mousetar/patches/patch-aa b/archivers/mousetar/patches/patch-aa index 5c7390dca92..4ca912f9ce9 100644 --- a/archivers/mousetar/patches/patch-aa +++ b/archivers/mousetar/patches/patch-aa @@ -1,6 +1,6 @@ -$NetBSD: patch-aa,v 1.3 2012/02/29 18:14:31 hans Exp $ +$NetBSD: patch-aa,v 1.4 2012/03/09 06:14:39 sbd Exp $ ---- tar.c.orig 2004-08-06 16:27:58.000000000 -0500 +--- tar.c.orig 2012-03-09 06:07:25.071601044 +0000 +++ tar.c @@ -235,6 +235,9 @@ standards: gwoods sez IEEE Std 1003.1-19 @@ -12,12 +12,15 @@ $NetBSD: patch-aa,v 1.3 2012/02/29 18:14:31 hans Exp $ #include #include #include -@@ -247,8 +250,13 @@ standards: gwoods sez IEEE Std 1003.1-19 +@@ -247,8 +250,17 @@ standards: gwoods sez IEEE Std 1003.1-19 #include #include #include --#include ++#if defined(__linux__) + #include ++#else +#include ++#endif +#include #include +#include @@ -27,7 +30,7 @@ $NetBSD: patch-aa,v 1.3 2012/02/29 18:14:31 hans Exp $ /* If none of the TAR_MAP_* symbols are defined, guess */ #if !defined(TAR_MAP_SUN) && \ -@@ -471,8 +479,8 @@ extern char *valloc(); +@@ -471,8 +483,8 @@ extern char *valloc(); /* NetBSD: fix up itoo/itod and the fs_q?mask fields, and BIG* */ #ifdef TAR_INODE_NETBSD #include -- cgit v1.2.3