Skip to content

Commit c9e4bf9

Browse files
authored
copy_file_range: linking check instead of compiling
1 parent 61a190c commit c9e4bf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ AS_VAR_IF([php_cv_func_getaddrinfo], [yes],
695695
dnl on FreeBSD, copy_file_range() works only with the undocumented flag 0x01000000;
696696
dnl until the problem is fixed properly, copy_file_range() is used only on Linux
697697
AC_CACHE_CHECK([for copy_file_range], [php_cv_func_copy_file_range],
698-
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([
698+
[AC_LINK_IFELSE([AC_LANG_SOURCE([
699699
#ifndef __linux__
700700
# error "unsupported platform"
701701
#endif

0 commit comments

Comments
 (0)