diff options
| author | Wez Furlong <wez@php.net> | 2002-08-22 17:42:18 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2002-08-22 17:42:18 +0000 |
| commit | 57181120885a8641bd47eed51a0b6fd8e4f58686 (patch) | |
| tree | e8432cc545888c89919e36a474c15b1b9d0d7a53 | |
| parent | 62b7b412e28e19653550295e6e60cc0516fad321 (diff) | |
| download | php-git-57181120885a8641bd47eed51a0b6fd8e4f58686.tar.gz | |
Fix compile warnings under win32
| -rwxr-xr-x | main/streams.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/streams.c b/main/streams.c index 0726530bf1..229ec545e6 100755 --- a/main/streams.c +++ b/main/streams.c @@ -388,7 +388,7 @@ PHPAPI char *_php_stream_gets(php_stream *stream, char *buf, size_t maxlen TSRML /* TODO: look at error returns? */ - while (--maxlen > 0 && php_stream_read(stream, buf, 1 TSRMLS_CC) == 1 && *buf++ != '\n') + while (--maxlen > 0 && php_stream_read(stream, buf, 1) == 1 && *buf++ != '\n') ; *buf = '\0'; @@ -910,8 +910,11 @@ static int php_stdiop_set_option(php_stream *stream, int option, int value, void php_stdio_stream_data *data = (php_stdio_stream_data*) stream->abstract; size_t size; int fd; +#ifdef O_NONBLOCK + /* FIXME: make this work for win32 */ int flags; int oldval; +#endif switch(option) { case PHP_STREAM_OPTION_BLOCKING: |
