projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates from libc,automake
[gnulib.git]
/
lib
/
isdir.c
diff --git
a/lib/isdir.c
b/lib/isdir.c
index
f653faf
..
01cf8d5
100644
(file)
--- a/
lib/isdir.c
+++ b/
lib/isdir.c
@@
-22,20
+22,19
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
-#if
def
STAT_MACROS_BROKEN
+#if STAT_MACROS_BROKEN
# undef S_ISDIR
# 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
#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;
{
struct stat stats;