use portable fseek

This commit is contained in:
Anatol Belski 2015-03-11 08:55:16 +01:00
parent 589374d027
commit f43cc2a19a

View file

@ -336,7 +336,7 @@ static size_t php_stdiop_write(php_stream *stream, const char *buf, size_t count
#if HAVE_FLUSHIO
if (!data->is_pipe && data->last_op == 'r') {
fseek(data->file, 0, SEEK_CUR);
zend_fseek(data->file, 0, SEEK_CUR);
}
data->last_op = 'w';
#endif