summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-12 00:49:16 +0100
committerwm4 <wm4@nowhere>2014-03-12 00:49:16 +0100
commitb05803c2e1ee910b33af75f80fbc849101f0eff0 (patch)
treee40c9794068123c65d4e5d49a101e49b1fbd33df
parentac4b9a47cef7a17e27fb034b787089cf07f6c3d4 (diff)
downloadmpv-b05803c2e1ee910b33af75f80fbc849101f0eff0.tar.bz2
mpv-b05803c2e1ee910b33af75f80fbc849101f0eff0.tar.xz
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.
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
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()",