mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
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>
This commit is contained in:
parent
45a33b25c4
commit
22a58a5184
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user