From 94cfb49bb7051c7e979bcf168e467328b96ee631 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 7 Dec 2010 15:33:51 +0100 Subject: [PATCH] s3-waf: add configure/declaration checks for fdatasync, readahead and splice. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Tue Dec 7 16:50:23 CET 2010 on sn-devel-104 --- source3/wscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source3/wscript b/source3/wscript index 8f6ad598d02c..da9a9db4b894 100644 --- a/source3/wscript +++ b/source3/wscript @@ -121,6 +121,18 @@ def configure(conf): #FIXME: for some reason this one still fails conf.CHECK_FUNCS_IN('yp_get_default_domain', 'nsl') conf.CHECK_FUNCS_IN('dn_expand _dn_expand __dn_expand', 'resolv') + conf.CHECK_DECLS('fdatasync', reverse=True) + conf.CHECK_DECLS('readahead', reverse=True, headers='fcntl.h') + + if conf.CHECK_CODE(''' +#if defined(HAVE_UNISTD_H) +#include +#endif +long ret = splice(0,0,1,0,400,0); +''', + 'HAVE_LINUX_SPLICE', + headers='fcntl.h'): + conf.CHECK_DECLS('splice', reverse=True, headers='fcntl.h') # Check for inotify support conf.CHECK_HEADERS('linux/inotify.h asm/unistd.h sys/inotify.h') -- 2.34.1