X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fisdir.c;h=6a56a43d651afd617beb8637148df1cc329536f5;hb=fb84631f1ec8e82d252cbad0b5b7f83a98e74ba9;hp=f653fafc936b000c6fe66cebba93d56e7b17e446;hpb=67f394c1d2be473276ccd5e071f986511a13e212;p=gnulib.git diff --git a/lib/isdir.c b/lib/isdir.c index f653fafc9..6a56a43d6 100644 --- a/lib/isdir.c +++ b/lib/isdir.c @@ -13,29 +13,28 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H # include #endif #include #include -#ifdef STAT_MACROS_BROKEN +#if STAT_MACROS_BROKEN # undef S_ISDIR -#endif /* STAT_MACROS_BROKEN. */ +#endif -#if !defined(S_ISDIR) && defined(S_IFDIR) -# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#if !defined S_ISDIR && defined S_IFDIR +# define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) #endif /* If PATH is an existing directory or symbolic link to a directory, return nonzero, else 0. */ int -isdir (path) - char *path; +isdir (const char *path) { struct stat stats;