From 1cc0fb5a9aa9f7c90c27972b2c347fbcb3df5fe3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 16 Feb 2011 17:33:05 +0100 Subject: s3-waf: add check for hires timestamps in struct stat. Guenther --- source3/wscript | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source3/wscript b/source3/wscript index cab8f81a89..dc77c12fb1 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1050,6 +1050,23 @@ exit(1); execute=True, msg="Checking whether the flock64 struct is available") + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtim.tv_nsec', + define='HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC') # Linux, Solaris + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtimensec', + define='HAVE_STRUCT_STAT_ST_MTIMENSEC') # BSD, if defined _POSIX_SOURCE + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtimespec.tv_nsec', + define='HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC') # BSD, if not defined _POSIX_SOURCE + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtime_n', + define='HAVE_STRUCT_STAT_ST_MTIME_N') # AIX + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_umtime', + define='HAVE_STRUCT_STAT_ST_UMTIME') # Tru64 + if conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC') or \ + conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_MTIMENSEC') or \ + conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC') or \ + conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_MTIME_N') or \ + conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_UMTIME'): + conf.DEFINE('HAVE_STAT_HIRES_TIMESTAMPS', '1') + 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 -- cgit