summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2007-10-28 10:27:34 +0000
committerheinz <heinz@pkgsrc.org>2007-10-28 10:27:34 +0000
commit77857cf839a1a37f3209ab9c3d27ece059ec5358 (patch)
tree0961fd311bc515c3d60f54db514f744cb81f91b7 /sysutils
parent353a1bd0ae10872bafc6b26293a44a4fe0a200b6 (diff)
downloadpkgsrc-77857cf839a1a37f3209ab9c3d27ece059ec5358.tar.gz
Instead of removing the unportable inclusion of features.h marked it as
specific to Linux.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/tree/patches/patch-aa19
1 files 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 <features.h>
++#if defined(__linux__)
+ #include <features.h>
++#endif
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
+@@ -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);