Skip to content

Commit 8148422

Browse files
arnaud-lbMaxKellermann
authored andcommitted
Fix cookie_seek_function_t signature under musl (php#13890)
Fixes phpGH-11678
1 parent 62f3582 commit 8148422

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

main/streams/cast.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t siz
102102

103103
# ifdef COOKIE_SEEKER_USES_OFF64_T
104104
static int stream_cookie_seeker(void *cookie, off64_t *position, int whence)
105+
# else
106+
static int stream_cookie_seeker(void *cookie, off_t *position, int whence)
107+
# endif
105108
{
106109

107110
*position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence);
@@ -111,13 +114,6 @@ static int stream_cookie_seeker(void *cookie, off64_t *position, int whence)
111114
}
112115
return 0;
113116
}
114-
# else
115-
static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence)
116-
{
117-
118-
return php_stream_seek((php_stream *)cookie, position, whence);
119-
}
120-
# endif
121117

122118
static int stream_cookie_closer(void *cookie)
123119
{

0 commit comments

Comments
 (0)