aboutsummaryrefslogtreecommitdiffstats
path: root/file_cmds/ls/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'file_cmds/ls/ls.c')
-rw-r--r--file_cmds/ls/ls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/file_cmds/ls/ls.c b/file_cmds/ls/ls.c
index e079333..0a6b1a0 100644
--- a/file_cmds/ls/ls.c
+++ b/file_cmds/ls/ls.c
@@ -75,7 +75,6 @@ __RCSID("$FreeBSD: src/bin/ls/ls.c,v 1.66 2002/09/21 01:28:36 wollman Exp $");
#include <sys/param.h>
#include <get_compat.h>
#include <sys/sysctl.h>
-#include <System/sys/fsctl.h>
#else
#define COMPAT_MODE(a,b) (1)
#endif /* __APPLE__ */
@@ -562,10 +561,12 @@ traverse(int argc, char *argv[], int options)
break;
}
+#ifdef SF_DATALESS
if (IS_DATALESS(p->fts_statp)) {
fts_set(ftsp, p, FTS_SKIP);
break;
}
+#endif
/*
* If already output something, put out a newline as
@@ -858,9 +859,11 @@ display(FTSENT *p, FTSENT *list)
} else {
np->mode_suffix = ' ';
}
+#ifdef SF_DATALESS
if (IS_DATALESS(sp)) {
np->mode_suffix = '%';
}
+#endif
if (!f_acl) {
acl_free(np->acl);
np->acl = NULL;