From 77857cf839a1a37f3209ab9c3d27ece059ec5358 Mon Sep 17 00:00:00 2001 From: heinz Date: Sun, 28 Oct 2007 10:27:34 +0000 Subject: Instead of removing the unportable inclusion of features.h marked it as specific to Linux. --- sysutils/tree/patches/patch-aa | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/sysutils/tree/patches/patch-aa b/sysutils/tree/patches/patch-aa index b10197a7c1a..110f7e6bb8d 100644 --- a/sysutils/tree/patches/patch-aa +++ b/sysutils/tree/patches/patch-aa @@ -1,12 +1,23 @@ -$NetBSD: patch-aa,v 1.2 2007/10/24 23:25:12 wiz Exp $ +$NetBSD: patch-aa,v 1.3 2007/10/28 10:27:34 heinz Exp $ ---- tree.c.orig 2007-06-11 13:22:06.000000000 +0000 +--- tree.c.orig 2007-06-11 15:22:06.000000000 +0200 +++ tree.c -@@ -17,7 +17,6 @@ +@@ -17,7 +17,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ --#include ++#if defined(__linux__) + #include ++#endif #include #include #include +@@ -619,7 +621,7 @@ void listdir(char *d, int *dt, int *ft, + if (!noindent) indent(); + + path[0] = 0; +-#ifdef __USE_FILE_OFFSET64 ++#if defined(__linux__) && defined(__USE_FILE_OFFSET64) + if (inodeflag) sprintf(path," %7lld",(*dir)->inode); + #else + if (inodeflag) sprintf(path," %7ld",(*dir)->inode); -- cgit v1.2.3