summaryrefslogtreecommitdiff
path: root/glob
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-05-10 21:57:56 +0000
committerRoland McGrath <roland@redhat.com>1995-05-10 21:57:56 +0000
commitc18253b59b7178c296fe6def630e7b19a3a83d80 (patch)
tree0c5cf0bb4a6b1fe113b94bc709f0403ef59cd0cb /glob
parent41177916df1f49dc3619c400a319b658b10f85ee (diff)
downloadgunmake-c18253b59b7178c296fe6def630e7b19a3a83d80.tar.gz
Updated from libc
Diffstat (limited to 'glob')
-rw-r--r--glob/ChangeLog4
-rw-r--r--glob/glob.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/glob/ChangeLog b/glob/ChangeLog
index 6e535ee..d8cd316 100644
--- a/glob/ChangeLog
+++ b/glob/ChangeLog
@@ -1,3 +1,7 @@
+Sat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
+
+ * posix/glob.c (S_ISDIR): Define if undefined.
+
Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob.c (glob): If GLOB_MARK set, stat names to find
diff --git a/glob/glob.c b/glob/glob.c
index 81f3049..38a6d75 100644
--- a/glob/glob.c
+++ b/glob/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