diff options
Diffstat (limited to 'lib/isdir.c')
-rw-r--r-- | lib/isdir.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/isdir.c b/lib/isdir.c index 01cf8d5e4..9f18b01bc 100644 --- a/lib/isdir.c +++ b/lib/isdir.c @@ -1,5 +1,5 @@ /* isdir.c -- determine whether a directory exists - Copyright (C) 1990, 1998 Free Software Foundation, Inc. + Copyright (C) 1990, 1998, 2004 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 @@ -21,14 +21,7 @@ #include <sys/types.h> #include <sys/stat.h> - -#if STAT_MACROS_BROKEN -# undef S_ISDIR -#endif - -#if !defined S_ISDIR && defined S_IFDIR -# define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) -#endif +#include "stat-macros.h" /* If PATH is an existing directory or symbolic link to a directory, return nonzero, else 0. */ |