blob: 9e2ae236a7cbd60b8b14323c5f4a411739265ea5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-aj,v 1.1 2006/01/09 22:45:08 joerg Exp $
--- src/ls.c.orig 2006-01-03 17:15:34.000000000 +0000
+++ src/ls.c
@@ -2528,7 +2528,7 @@ gobble_file (const char *name, enum file
else
{
f->filetype = type;
-#if HAVE_STRUCT_DIRENT_D_TYPE
+#if HAVE_STRUCT_DIRENT_D_TYPE && defined(DTTOIF)
f->stat.st_mode = DTTOIF (type);
#endif
blocks = 0;
|