X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fisdir.c;h=dfd52a4a908ed86d5a66a8524c4db8105bcd04fe;hb=6aae241f16ed2dbe57475cb4c8b3a5b1ca1e9699;hp=196dd8906cf48219cb29198e53af7fc470f6f9b8;hpb=bea3493f472ff6e99100c15887dff7caca81489e;p=gnulib.git diff --git a/lib/isdir.c b/lib/isdir.c index 196dd8906..dfd52a4a9 100644 --- a/lib/isdir.c +++ b/lib/isdir.c @@ -16,24 +16,15 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef HAVE_CONFIG_H -#if defined (CONFIG_BROKETS) -/* We use instead of "config.h" so that a compilation - using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h - (which it would do because it found this file in $srcdir). */ #include -#else -#include "config.h" -#endif #endif #include #include -#include "safe-stat.h" - -#ifdef STAT_MACROS_BROKEN +#ifdef STAT_MACROS_BROKEN #undef S_ISDIR -#endif /* STAT_MACROS_BROKEN. */ +#endif /* STAT_MACROS_BROKEN. */ #if !defined(S_ISDIR) && defined(S_IFDIR) #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) @@ -48,5 +39,5 @@ isdir (path) { struct stat stats; - return SAFE_STAT (path, &stats) == 0 && S_ISDIR (stats.st_mode); + return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode); }