summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript7
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: