Skip to content

Commit 250b160

Browse files
committed
Merge branch 'PHP-8.3'
2 parents affd175 + c24f621 commit 250b160

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/zend_test/test.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,9 +1368,12 @@ PHP_ZEND_TEST_API int gh11934b_ffi_var_test_cdata;
13681368
/**
13691369
* This function allows us to simulate early return of copy_file_range by setting the limit_copy_file_range ini setting.
13701370
*/
1371-
PHP_ZEND_TEST_API ssize_t copy_file_range(int fd_in, off_t *off_in, int fd_out, off_t *off_out, size_t len, unsigned int flags)
1371+
#ifdef __MUSL__
1372+
typedef off_t off64_t;
1373+
#endif
1374+
PHP_ZEND_TEST_API ssize_t copy_file_range(int fd_in, off64_t *off_in, int fd_out, off64_t *off_out, size_t len, unsigned int flags)
13721375
{
1373-
ssize_t (*original_copy_file_range)(int, off_t *, int, off_t *, size_t, unsigned int) = dlsym(RTLD_NEXT, "copy_file_range");
1376+
ssize_t (*original_copy_file_range)(int, off64_t *, int, off64_t *, size_t, unsigned int) = dlsym(RTLD_NEXT, "copy_file_range");
13741377
if (ZT_G(limit_copy_file_range) >= Z_L(0)) {
13751378
len = ZT_G(limit_copy_file_range);
13761379
}

0 commit comments

Comments
 (0)