From: Rui Hirokawa Date: Sat, 11 Aug 2007 04:34:59 +0000 (+0000) Subject: fixed compilation error: S_ISDIR is undefined. X-Git-Tag: php-5.2.4RC2~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2a13a5c50095ac805b8b3f58f8a9a7084c0001b;p=php fixed compilation error: S_ISDIR is undefined. --- 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 #endif +#ifndef S_ISDIR +#define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR) +#endif /* }}} */ #define PHP_STREAM_TO_ZVAL(stream, arg) \