summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-16 17:33:05 +0100
committerGünther Deschner <gd@samba.org>2011-02-16 18:39:38 +0100
commit1cc0fb5a9aa9f7c90c27972b2c347fbcb3df5fe3 (patch)
treef2c10d5f1f72db066b69f9bb996e351165ef0f25 /source3/wscript
parent3b3f13a7fb6816563ae1334e821ea37f9175b16e (diff)
downloadsamba-1cc0fb5a9aa9f7c90c27972b2c347fbcb3df5fe3.tar.gz
samba-1cc0fb5a9aa9f7c90c27972b2c347fbcb3df5fe3.tar.bz2
samba-1cc0fb5a9aa9f7c90c27972b2c347fbcb3df5fe3.zip
s3-waf: add check for hires timestamps in struct stat.
Guenther
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript17
1 files changed, 17 insertions, 0 deletions
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