77857cf839
specific to Linux.
23 lines
655 B
Text
23 lines
655 B
Text
$NetBSD: patch-aa,v 1.3 2007/10/28 10:27:34 heinz Exp $
|
|
|
|
--- tree.c.orig 2007-06-11 15:22:06.000000000 +0200
|
|
+++ tree.c
|
|
@@ -17,7 +17,9 @@
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
+#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);
|