[BACK]Return to patch-aa CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / archivers / mousetar / patches

File: [cvs.NetBSD.org] / pkgsrc / archivers / mousetar / patches / patch-aa (download)

Revision 1.2, Wed Aug 18 18:40:36 2004 UTC (15 years, 7 months ago) by minskim
Branch: MAIN
CVS Tags: pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-2005Q4-base, pkgsrc-2005Q4, pkgsrc-2005Q3-base, pkgsrc-2005Q3, pkgsrc-2005Q2-base, pkgsrc-2005Q2, pkgsrc-2005Q1-base, pkgsrc-2005Q1, pkgsrc-2004Q4-base, pkgsrc-2004Q4, pkgsrc-2004Q3-base, pkgsrc-2004Q3, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.1: +14 -4 lines

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.

$NetBSD: patch-aa,v 1.2 2004/08/18 18:40:36 minskim Exp $

--- 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>
-#include <ufs/ffs/fs.h>
 #include <ufs/ufs/dinode.h>
+#include <ufs/ffs/fs.h>
 #define rawi_direct direct
 #define itoo(sb,i) ino_to_fsbo(sb,i)
 #define itod(sb,i) ino_to_fsba(sb,i)