(S_ISDIR): Define if undefined.
authorRoland McGrath <roland@gnu.org>
Sat, 29 Apr 1995 19:46:34 +0000 (19:46 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 29 Apr 1995 19:46:34 +0000 (19:46 +0000)
posix/glob.c

index 81f3049..38a6d75 100644 (file)
@@ -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