[PATCH 4/5] wscript: check for copy_file_range syscall
Björn Jacke
bj at sernet.de
Thu Jan 19 23:01:42 UTC 2017
this one came with Linux kernel 4.5
Signed-off-by: Bjoern Jacke <bj at sernet.de>
---
source3/wscript | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/source3/wscript b/source3/wscript
index b09e372..de0b1da 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1204,6 +1204,15 @@ ssize_t err = posix_fadvise(0,0,0x80000,POSIX_FADV_WILLNEED);
msg='Checking whether sysconf(%s) is available' % v)
conf.CHECK_CODE('''
+#include <stdlib.h>
+#include <sys/syscall.h>
+#include <unistd.h>
+syscall(SYS_copy_file_range,0,NULL,0,NULL,0,0);
+ ''',
+ 'HAVE_SYSCALL_COPY_FILE_RANGE',
+ msg='Checking whether we have copy_file_range system call')
+
+ conf.CHECK_CODE('''
#include <sys/syscall.h>
#include <unistd.h>
syscall(SYS_initgroups, 16, NULL, NULL, 0);
--
2.7.4
More information about the samba-technical
mailing list