summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-08-07 17:18:08 +0200
committerJeremy Allison <jra@samba.org>2021-08-10 18:44:30 +0000
commit22a58a51846749495613e5b572c31ba4752bc61b (patch)
tree6683f2f9ae6a5994ff6b50f50d8f353420b0bad1 /lib/replace
parent45a33b25c4e6b1db5d2dfa6297ccb390220a7c80 (diff)
downloadsamba-22a58a51846749495613e5b572c31ba4752bc61b.tar.gz
libreplace: properly give headers to conf.CHECK_CODE when checking for copy_file_range_syscall
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14786 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/wscript3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 12f995f3198..3cc0adeeb34 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -456,11 +456,10 @@ def configure(conf):
conf.CHECK_FUNCS('getprogname')
if not conf.CHECK_FUNCS('copy_file_range'):
conf.CHECK_CODE('''
-#include <sys/syscall.h>
-#include <unistd.h>
syscall(SYS_copy_file_range,0,NULL,0,NULL,0,0);
''',
'HAVE_SYSCALL_COPY_FILE_RANGE',
+ headers='sys/syscall.h unistd.h',
msg='Checking whether we have copy_file_range system call')
if conf.CONFIG_SET('HAVE_COPY_FILE_RANGE') or conf.CONFIG_SET('HAVE_SYSCALL_COPY_FILE_RANGE'):
conf.DEFINE('USE_COPY_FILE_RANGE', 1)