From c9e4bf9d599e25b9728a0968cf6bfb04a5cb36a8 Mon Sep 17 00:00:00 2001 From: fda77 Date: Thu, 30 Jul 2026 16:26:33 +0200 Subject: [PATCH] copy_file_range: linking check instead of compiling --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ec64637b186b..4b9c6bb070f5 100644 --- a/configure.ac +++ b/configure.ac @@ -695,7 +695,7 @@ AS_VAR_IF([php_cv_func_getaddrinfo], [yes], dnl on FreeBSD, copy_file_range() works only with the undocumented flag 0x01000000; dnl until the problem is fixed properly, copy_file_range() is used only on Linux AC_CACHE_CHECK([for copy_file_range], [php_cv_func_copy_file_range], -[AC_COMPILE_IFELSE([AC_LANG_SOURCE([ +[AC_LINK_IFELSE([AC_LANG_SOURCE([ #ifndef __linux__ # error "unsupported platform" #endif