From: Günther Deschner Date: Thu, 17 Feb 2011 09:53:25 +0000 (+0100) Subject: s3-waf: add check for "struct utimbuf". X-Git-Tag: tevent-0.9.11~555 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce718bb521d3f3a83d07303373889d2c834fbe14;p=thirdparty%2Fsamba.git s3-waf: add check for "struct utimbuf". Guenther --- diff --git a/source3/wscript b/source3/wscript index 4938f165f25..e8c867f7418 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1113,6 +1113,11 @@ syscall(SYS_initgroups, 16, NULL, NULL, 0); 'HAVE_DARWIN_INITGROUPS', msg='Checking hether to use the Darwin-specific initgroups system call') + conf.CHECK_CODE('''struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));''', + 'HAVE_UTIMBUF', + headers='sys/types.h utime.h', + msg='Checking whether struct utimbuf is available') + default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_sam auth_unix auth_winbind auth_wbc auth_server auth_domain auth_builtin vfs_default