From: Christian Goeschel Ndjomouo Date: Wed, 15 Apr 2026 12:17:40 +0000 (-0400) Subject: build: (copyfilerange) include syscall header check for fallback X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=16afd220272c66459d06772ac2aaaaf293b640a2;p=thirdparty%2Futil-linux.git build: (copyfilerange) include syscall header check for fallback Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/meson.build b/meson.build index 40cee627d..88010cac0 100644 --- a/meson.build +++ b/meson.build @@ -3105,7 +3105,9 @@ if opt and not is_disabler(exe) exes += exe endif -opt = get_option('build-copyfilerange').require(LINUX and conf.get('HAVE_COPY_FILE_RANGE').to_string() == '1').allowed() +have_copy_file_range = conf.get('HAVE_COPY_FILE_RANGE').to_string() == '1' \ + or cc.has_header_symbol('sys/syscall.h', 'SYS_copy_file_range') +opt = get_option('build-copyfilerange').require(LINUX and have_copy_file_range).allowed() exe = executable( 'copyfilerange', copyfilerange_sources,