pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/tree/patches Instead of removing the unportab...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ee5b99eeb1bc
branches:  trunk
changeset: 534626:ee5b99eeb1bc
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sun Oct 28 10:27:34 2007 +0000

description:
Instead of removing the unportable inclusion of features.h marked it as
specific to Linux.

diffstat:

 sysutils/tree/patches/patch-aa |  19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r f2c14f8ceab8 -r ee5b99eeb1bc sysutils/tree/patches/patch-aa
--- a/sysutils/tree/patches/patch-aa    Sun Oct 28 10:10:09 2007 +0000
+++ b/sysutils/tree/patches/patch-aa    Sun Oct 28 10:27:34 2007 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index