summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-09-06 16:15:04 +0200
committerBjoern Jacke <bj@sernet.de>2012-09-07 14:15:56 +0200
commit8299bd1814ae4d3b79ee649e70a9336271ccfa7a (patch)
tree933948b85ed0933f305d086fa60494dadc8d634c /lib
parentb317f75ea69d99c34a2b4ecde9e6634653100dea (diff)
downloadsamba-8299bd1814ae4d3b79ee649e70a9336271ccfa7a.tar.gz
samba-8299bd1814ae4d3b79ee649e70a9336271ccfa7a.tar.bz2
samba-8299bd1814ae4d3b79ee649e70a9336271ccfa7a.zip
waf: add check for BSD_STYLE_STATVFS
a leftover from bug #8777
Diffstat (limited to 'lib')
-rw-r--r--lib/util/wscript_configure12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/util/wscript_configure b/lib/util/wscript_configure
index f0514fd0b8..3cb2ffcfae 100644
--- a/lib/util/wscript_configure
+++ b/lib/util/wscript_configure
@@ -58,6 +58,18 @@ if not found_statfs:
print("FATAL: Failed to find a statfs method")
raise
+if conf.CONFIG_SET('STAT_STATFS2_BSIZE'):
+ conf.CHECK_CODE("""#ifdef HAVE_SYS_PARAM_H
+ #include <sys/param.h>
+ #endif
+ #ifdef HAVE_SYS_MOUNT_H
+ #include <sys/mount.h>
+ #endif
+ struct statfs fsd; fsd.f_iosize = 0;""",
+ define='BSD_STYLE_STATVFS',
+ msg='Checking for *bsd style statfs with statfs.f_iosize',
+ execute=False,
+ local_include=False)
conf.CHECK_CODE('struct statvfs buf; buf.f_fsid = 0',
define='HAVE_FSID_INT',