Skip to content

Commit 774e5b6

Browse files
committed
Fix error: static declaration of copy_file_range follows non-static declaration
1 parent 9043785 commit 774e5b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main/io/php_io_copy_linux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121

2222
#if !defined(HAVE_COPY_FILE_RANGE) && defined(__NR_copy_file_range)
2323
#define HAVE_COPY_FILE_RANGE 1
24-
static inline ssize_t copy_file_range(
24+
static inline ssize_t php_copy_file_range(
2525
int fd_in, off_t *off_in, int fd_out, off_t *off_out, size_t len, unsigned int flags)
2626
{
2727
return syscall(__NR_copy_file_range, fd_in, off_in, fd_out, off_out, len, flags);
2828
}
29+
#define copy_file_range php_copy_file_range
2930
#endif
3031

3132
#ifdef HAVE_SENDFILE

0 commit comments

Comments
 (0)