Skip to content

Commit 370820e

Browse files
committed
Fixed check for copy_file_range on Android
AC_CHECK_FUNCS apparently doesn't take into account the __ANDROID_API__ level properly and so incorrectly determines that copy_file_range is available for termux at API 24 but copy_file_range is <= 34. Ticket: none Changelog: none
1 parent b541375 commit 370820e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ AC_CHECK_DECLS([FALLOC_FL_PUNCH_HOLE], [], [], [
895895
])
896896
AC_CHECK_HEADERS([sys/sendfile.h])
897897
AC_CHECK_FUNCS([sendfile])
898-
AC_CHECK_FUNCS([copy_file_range])
898+
AC_CHECK_DECL([copy_file_range])
899899

900900

901901
dnl #######################################################################

0 commit comments

Comments
 (0)