summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Hirokawa <hirokawa@php.net>2007-08-11 04:34:59 +0000
committerRui Hirokawa <hirokawa@php.net>2007-08-11 04:34:59 +0000
commite2a13a5c50095ac805b8b3f58f8a9a7084c0001b (patch)
treec2a9e602ef914e58ed6597acf940aaec179f6800
parentceeeed9d19aa52fc6a63668427b62383d2173949 (diff)
downloadphp-git-e2a13a5c50095ac805b8b3f58f8a9a7084c0001b.tar.gz
fixed compilation error: S_ISDIR is undefined.
-rw-r--r--ext/standard/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index d9fcf06f91..594a5ec3f8 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -127,6 +127,9 @@ php_file_globals file_globals;
#include <wchar.h>
#endif
+#ifndef S_ISDIR
+#define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
+#endif
/* }}} */
#define PHP_STREAM_TO_ZVAL(stream, arg) \