waf: add check for BSD_STYLE_STATVFS
authorBjörn Jacke <bj@sernet.de>
Thu, 6 Sep 2012 14:15:04 +0000 (16:15 +0200)
committerBjoern Jacke <bj@sernet.de>
Fri, 7 Sep 2012 12:15:56 +0000 (14:15 +0200)
a leftover from bug #8777

lib/util/wscript_configure

index f0514fd0b804c22ff28ad6d3c9cddaa6f17e5fa9..3cb2ffcfae3aadcdf3d7731b5e7ba63c0f775917 100644 (file)
@@ -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',