[php-src] PHP-8.2: Fix cookie_seek_function_t signature under musl (#13890)

From: Date: Mon, 08 Apr 2024 12:58:18 +0000
Subject: [php-src] PHP-8.2: Fix cookie_seek_function_t signature under musl (#13890)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-127977@lists.php.net to get a copy of this message
Author: Arnaud Le Blanc (arnaud-lb) Committer: GitHub (web-flow) Pusher: arnaud-lb Date: 2024-04-08T14:58:12+02:00 Commit: https://github.com/php/php-src/commit/577b8ae4226368e66fee7a9b5c58f9e2428372fc Raw diff: https://github.com/php/php-src/commit/577b8ae4226368e66fee7a9b5c58f9e2428372fc.diff Fix cookie_seek_function_t signature under musl (#13890) Fixes GH-11678 Changed paths: M main/streams/cast.c Diff: diff --git a/main/streams/cast.c b/main/streams/cast.c index 3bad65fbac1f5..8d9f4a9d2d54b 100644 --- a/main/streams/cast.c +++ b/main/streams/cast.c @@ -104,6 +104,9 @@ static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t siz # ifdef COOKIE_SEEKER_USES_OFF64_T static int stream_cookie_seeker(void *cookie, off64_t *position, int whence) +# else +static int stream_cookie_seeker(void *cookie, off_t *position, int whence) +# endif { *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); @@ -113,13 +116,6 @@ static int stream_cookie_seeker(void *cookie, off64_t *position, int whence) } return 0; } -# else -static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence) -{ - - return php_stream_seek((php_stream *)cookie, position, whence); -} -# endif static int stream_cookie_closer(void *cookie) {

« previous php.cvs (#127977) next »