From e300e0df59ae63f99e20e7f9c89b782847d19165 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 28 Oct 2002 12:37:31 +0000 Subject: [PATCH] Fix win32 build. --- main/streams.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.40.0