Skip to content

Commit 577b8ae

Browse files
authored
Fix cookie_seek_function_t signature under musl (#13890)
Fixes GH-11678
1 parent a86256c commit 577b8ae

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Diff for: main/streams/cast.c

+3-7
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t siz
104104

105105
# ifdef COOKIE_SEEKER_USES_OFF64_T
106106
static int stream_cookie_seeker(void *cookie, off64_t *position, int whence)
107+
# else
108+
static int stream_cookie_seeker(void *cookie, off_t *position, int whence)
109+
# endif
107110
{
108111

109112
*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)
113116
}
114117
return 0;
115118
}
116-
# else
117-
static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence)
118-
{
119-
120-
return php_stream_seek((php_stream *)cookie, position, whence);
121-
}
122-
# endif
123119

124120
static int stream_cookie_closer(void *cookie)
125121
{

0 commit comments

Comments
 (0)