]> granicus.if.org Git - php/commitdiff
fixed compilation error: S_ISDIR is undefined.
authorRui Hirokawa <hirokawa@php.net>
Sat, 11 Aug 2007 04:34:59 +0000 (04:34 +0000)
committerRui Hirokawa <hirokawa@php.net>
Sat, 11 Aug 2007 04:34:59 +0000 (04:34 +0000)
ext/standard/file.c

index d9fcf06f9110cda35ae50569d7aebf75f224fec2..594a5ec3f88ec1c5b9d69622d07759f88e27e3f6 100644 (file)
@@ -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) \