From: Ilia Alshanetsky Date: Mon, 28 Oct 2002 12:37:31 +0000 (+0000) Subject: Fix win32 build. X-Git-Tag: php-4.3.0RC1~489 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e300e0df59ae63f99e20e7f9c89b782847d19165;p=php Fix win32 build. --- diff --git a/main/streams.c b/main/streams.c index ee1328b0f1..c680cf3c31 100755 --- a/main/streams.c +++ b/main/streams.c @@ -1639,6 +1639,10 @@ PHPAPI php_stream *_php_stream_fopen_with_path(char *filename, char *mode, char } /* }}} */ +#ifndef S_ISREG +#define S_ISREG(mode) (((mode)&S_IFMT) == S_IFREG) +#endif + /* {{{ php_stream_fopen */ PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path, int options STREAMS_DC TSRMLS_DC) {