summaryrefslogtreecommitdiff
path: root/archivers/mousetar/patches
diff options
context:
space:
mode:
authorminskim <minskim>2004-08-18 18:40:36 +0000
committerminskim <minskim>2004-08-18 18:40:36 +0000
commit5781c4fac12457feccf6f237e818c5cb0bdad6a3 (patch)
treee3f401537dd5fb98d498143d8591c66252a0c4f4 /archivers/mousetar/patches
parentdb8e5f1b9eeba57c889afc409bf3b39cbc22862c (diff)
downloadpkgsrc-5781c4fac12457feccf6f237e818c5cb0bdad6a3.tar.gz
Make this package build on Linux.
- Include time.h to use struct tm. - Define LINUX_NAMLEN on Linux to avoid using d_namlen in struct dirent.
Diffstat (limited to 'archivers/mousetar/patches')
-rw-r--r--archivers/mousetar/patches/patch-aa18
1 files changed, 14 insertions, 4 deletions
diff --git a/archivers/mousetar/patches/patch-aa b/archivers/mousetar/patches/patch-aa
index d28af23ee0a..6cef5f5e59f 100644
--- a/archivers/mousetar/patches/patch-aa
+++ b/archivers/mousetar/patches/patch-aa
@@ -1,8 +1,18 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/10/28 12:41:55 agc Exp $
+$NetBSD: patch-aa,v 1.2 2004/08/18 18:40:36 minskim Exp $
---- tar.c 2002/10/16 09:25:24 1.1
-+++ tar.c 2002/10/16 09:25:38
-@@ -472,8 +472,8 @@
+--- tar.c.orig 2004-08-06 16:27:58.000000000 -0500
++++ tar.c
+@@ -235,6 +235,9 @@ standards: gwoods sez IEEE Std 1003.1-19
+
+ #include <stdio.h>
+ /* #include <time.h> grrr... */
++#ifdef __linux__
++#include <time.h>
++#endif
+ #include <errno.h>
+ #include <ctype.h>
+ #include <setjmp.h>
+@@ -471,8 +474,8 @@ extern char *valloc();
/* NetBSD: fix up itoo/itod and the fs_q?mask fields, and BIG* */
#ifdef TAR_INODE_NETBSD
#include <sys/param.h>