aboutsummaryrefslogtreecommitdiff
path: root/posix/glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/glob.c')
-rw-r--r--posix/glob.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/posix/glob.c b/posix/glob.c
index 81f3049..38a6d75 100644
--- a/posix/glob.c
+++ b/posix/glob.c
@@ -181,6 +181,8 @@ extern char *alloca ();
#endif
#ifdef STAT_MACROS_BROKEN
#undef S_ISDIR
+#endif
+#ifndef S_ISDIR
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif
#endif