diff options
author | Ralph Boehme <slow@samba.org> | 2021-08-07 17:18:08 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-08-10 18:44:30 +0000 |
commit | 22a58a51846749495613e5b572c31ba4752bc61b (patch) | |
tree | 6683f2f9ae6a5994ff6b50f50d8f353420b0bad1 /lib/replace/wscript | |
parent | 45a33b25c4e6b1db5d2dfa6297ccb390220a7c80 (diff) | |
download | samba-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/wscript')
-rw-r--r-- | lib/replace/wscript | 3 |
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) |