From b05803c2e1ee910b33af75f80fbc849101f0eff0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 12 Mar 2014 00:49:16 +0100 Subject: build: make check for BSD fstatfs() a bit more strict Linux also has fstatfs(), and the test relied on certain system include files being available on BSD, but not on Linux. It would break if Linux added the missing includes for some reason. Make it a bit stricter, and check for the struct statfs field the code needs. --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index 59b8734e22..3bfa395005 100644 --- a/wscript +++ b/wscript @@ -200,7 +200,7 @@ iconv support use --disable-iconv.", 'name': 'bsd-fstatfs', 'desc': "BSD's fstatfs()", 'func': check_statement(['sys/param.h', 'sys/mount.h'], - 'struct statfs fs; fstatfs(0, &fs)') + 'struct statfs fs; fstatfs(0, &fs); fs.f_fstypename') }, { 'name': 'linux-fstatfs', 'desc': "Linux's fstatfs()", -- cgit v1.2.3