diff options
author | Rui Hirokawa <hirokawa@php.net> | 2007-08-11 04:34:59 +0000 |
---|---|---|
committer | Rui Hirokawa <hirokawa@php.net> | 2007-08-11 04:34:59 +0000 |
commit | e2a13a5c50095ac805b8b3f58f8a9a7084c0001b (patch) | |
tree | c2a9e602ef914e58ed6597acf940aaec179f6800 | |
parent | ceeeed9d19aa52fc6a63668427b62383d2173949 (diff) | |
download | php-git-e2a13a5c50095ac805b8b3f58f8a9a7084c0001b.tar.gz |
fixed compilation error: S_ISDIR is undefined.
-rw-r--r-- | ext/standard/file.c | 3 |
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) \ |