X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fisdir.c;h=dfd52a4a908ed86d5a66a8524c4db8105bcd04fe;hb=f88e233cf519284cd4d8b2e4694f3b2b3561d215;hp=b1dbc2d70a00d219875bc3da1c1c3f9de97dc39f;hpb=68eb0d909e6de636f9af9a621e34eeaafa5fbac9;p=gnulib.git diff --git a/lib/isdir.c b/lib/isdir.c index b1dbc2d70..dfd52a4a9 100644 --- a/lib/isdir.c +++ b/lib/isdir.c @@ -16,26 +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 S_ISDIR +#ifdef STAT_MACROS_BROKEN #undef S_ISDIR -#endif -#endif /* STAT_MACROS_BROKEN. */ +#endif /* STAT_MACROS_BROKEN. */ #if !defined(S_ISDIR) && defined(S_IFDIR) #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) @@ -50,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); }