| 1 | Patch-Source: https://github.com/php/php-src/issues/11678
|
| 2 |
|
| 3 | diff --git a/main/streams/cast.c b/main/streams/cast.c
|
| 4 | index 3bad65fbac..05cab34658 100644
|
| 5 | |
| 6 | |
| 7 | @@ -102,8 +102,7 @@ static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t siz
|
| 8 | return php_stream_write(((php_stream *)cookie), (char *)buffer, size);
|
| 9 | }
|
| 10 |
|
| 11 | -# ifdef COOKIE_SEEKER_USES_OFF64_T
|
| 12 | -static int stream_cookie_seeker(void *cookie, off64_t *position, int whence)
|
| 13 | +static int stream_cookie_seeker(void *cookie, off_t *position, int whence)
|
| 14 | {
|
| 15 |
|
| 16 | *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence);
|
| 17 | @@ -113,13 +112,6 @@ static int stream_cookie_seeker(void *cookie, off64_t *position, int whence)
|
| 18 | }
|
| 19 | return 0;
|
| 20 | }
|
| 21 | -# else
|
| 22 | -static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence)
|
| 23 | -{
|
| 24 | -
|
| 25 | - return php_stream_seek((php_stream *)cookie, position, whence);
|
| 26 | -}
|
| 27 | -# endif
|
| 28 |
|
| 29 | static int stream_cookie_closer(void *cookie)
|
| 30 | {
|