summaryrefslogtreecommitdiff
path: root/sysutils/coreutils/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/coreutils/patches/patch-aj')
-rw-r--r--sysutils/coreutils/patches/patch-aj13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/coreutils/patches/patch-aj b/sysutils/coreutils/patches/patch-aj
new file mode 100644
index 00000000000..9e2ae236a7c
--- /dev/null
+++ b/sysutils/coreutils/patches/patch-aj
@@ -0,0 +1,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;