summaryrefslogtreecommitdiff
path: root/lib/makepath.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-06 00:24:18 +0000
committerJim Meyering <jim@meyering.net>1993-10-06 00:24:18 +0000
commit061697058cd98ffca2a110c9fb736f0dd0c5c459 (patch)
tree3cde384603271768516df0c097a6eb6e2fffa1ad /lib/makepath.c
parent712109716a7b75dda2d34751202d210acd879f6b (diff)
downloadcoreutils-061697058cd98ffca2a110c9fb736f0dd0c5c459.tar.xz
merge with 3.8.3a
Diffstat (limited to 'lib/makepath.c')
-rw-r--r--lib/makepath.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/makepath.c b/lib/makepath.c
index e61579021..7699c178d 100644
--- a/lib/makepath.c
+++ b/lib/makepath.c
@@ -38,8 +38,15 @@ char *alloca ();
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+
+#ifdef STAT_MACROS_BROKEN
+#ifdef S_ISDIR
+#undef S_ISDIR
+#endif
+#endif /* STAT_MACROS_BROKEN. */
+
#if !defined(S_ISDIR) && defined(S_IFDIR)
-#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
+#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#ifdef STDC_HEADERS