]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-waf: add check for "struct utimbuf".
authorGünther Deschner <gd@samba.org>
Thu, 17 Feb 2011 09:53:25 +0000 (10:53 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 17 Feb 2011 10:16:06 +0000 (11:16 +0100)
Guenther

source3/wscript

index 4938f165f257d36a9277c4c89165512bda010832..e8c867f74186bfb5b10c8e12ff5a69a8c91756f1 100644 (file)
@@ -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