X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmodechange.c;h=8eb8dc55db11c099c4d1f80dd15562bb758c4ab8;hb=17a8c8730f659a037042fd56335ed9280cc2d387;hp=b09661d0c5ca68da99ad8a362b45ad02f0d432e0;hpb=d87c39464604e74f580c7fae835be31a4c125c36;p=gnulib.git diff --git a/lib/modechange.c b/lib/modechange.c index b09661d0c..8eb8dc55d 100644 --- a/lib/modechange.c +++ b/lib/modechange.c @@ -24,6 +24,10 @@ changing the mode of many files, this probably results in a performance gain. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include "modechange.h" @@ -38,7 +42,11 @@ char *malloc (); #define NULL 0 #endif -#ifndef S_ISDIR +#ifdef STAT_MACROS_BROKEN +#undef S_ISDIR +#endif /* STAT_MACROS_BROKEN. */ + +#if !defined(S_ISDIR) && defined(S_IFDIR) #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif @@ -95,6 +103,9 @@ mode_compile (mode_string, masked_ops) umask (umask_value); /* Restore the old value. */ head = NULL; +#ifdef lint + change = NULL; +#endif --mode_string; /* One loop iteration for each "ugoa...=+-rwxXstugo...[=+-rwxXstugo...]". */