diff options
author | Kai Blin <kai@samba.org> | 2010-03-21 23:43:28 +0100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:27:03 +1000 |
commit | 22d9f3d7c5c01c2d8450352f622e7a498aa2bc46 (patch) | |
tree | adb6d441136ef35eba67934d363c2f796d87cc99 | |
parent | ea767433945b8a2315a4f89c1a2389c918da08a6 (diff) | |
download | samba-22d9f3d7c5c01c2d8450352f622e7a498aa2bc46.tar.gz samba-22d9f3d7c5c01c2d8450352f622e7a498aa2bc46.tar.bz2 samba-22d9f3d7c5c01c2d8450352f622e7a498aa2bc46.zip |
build: Check for various members of struct stat
-rw-r--r-- | source3/wscript | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index f78f7a271c..17b1f857d7 100644 --- a/source3/wscript +++ b/source3/wscript @@ -110,6 +110,13 @@ main() { }''', 'HAVE_KERNEL_SHARE_MODES', addmain=False, execute=True, msg="Checking for krenel share modes") + # Check for various members of the stat structure + conf.CHECK_TYPES('blksize_t blkcnt_t') + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_blocks', define='HAVE_STAT_ST_BLOCKS', + headers='sys/types.h sys/stat.h unistd.h',) + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_blksize', define='HAVE_STAT_ST_BLKSIZE', + headers='sys/types.h sys/stat.h unistd.h') + # Look for CUPS conf.find_program('cups-config', var='CUPS_CONFIG') if conf.env.CUPS_CONFIG: |