diff options
author | Jim Meyering <jim@meyering.net> | 2006-01-10 07:31:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-01-10 07:31:21 +0000 |
commit | f09a4ffe18dc8704da488c83f5b0b038dbec58e5 (patch) | |
tree | e698926011fa4f644e14e1d8b3c9fa9e77b3b5c0 /src | |
parent | 0cb6f1cc82979a3c0307b6f2f23ba494b73ff9a5 (diff) | |
download | coreutils-f09a4ffe18dc8704da488c83f5b0b038dbec58e5.tar.xz |
(gobble_file): Use DTTOIF only if it's defined.
This is necessary for Dragonfly. Patch by Joerg Sonnenberger.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* `dir', `vdir' and `ls' directory listing programs for GNU. - Copyright (C) 85, 88, 90, 91, 1995-2005 Free Software Foundation, Inc. + Copyright (C) 85, 88, 90, 91, 1995-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -2715,7 +2715,7 @@ gobble_file (char const *name, enum filetype type, bool command_line_arg, 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; |