summaryrefslogtreecommitdiff
path: root/misc/gnuls/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'misc/gnuls/patches/patch-ae')
-rw-r--r--misc/gnuls/patches/patch-ae13
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/gnuls/patches/patch-ae b/misc/gnuls/patches/patch-ae
new file mode 100644
index 00000000000..24bd57e1afa
--- /dev/null
+++ b/misc/gnuls/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2006/01/03 18:02:15 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;