diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-10-28 12:37:31 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-10-28 12:37:31 +0000 |
commit | e300e0df59ae63f99e20e7f9c89b782847d19165 (patch) | |
tree | 309373ec4144567f5b091150da63d8d4e7dffa0d | |
parent | e7daf531de15abdb95971393dff05ae3d761fcb5 (diff) | |
download | php-git-e300e0df59ae63f99e20e7f9c89b782847d19165.tar.gz |
Fix win32 build.
-rwxr-xr-x | main/streams.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |