From e2a13a5c50095ac805b8b3f58f8a9a7084c0001b Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Sat, 11 Aug 2007 04:34:59 +0000 Subject: [PATCH] fixed compilation error: S_ISDIR is undefined. --- ext/standard/file.c | 3 +++ 1 file changed, 3 insertions(+) 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) \ -- 2.50.1