diff options
author | wm4 <wm4@nowhere> | 2014-03-12 00:49:16 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-12 00:49:16 +0100 |
commit | b05803c2e1ee910b33af75f80fbc849101f0eff0 (patch) | |
tree | e40c9794068123c65d4e5d49a101e49b1fbd33df | |
parent | ac4b9a47cef7a17e27fb034b787089cf07f6c3d4 (diff) | |
download | mpv-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-- | wscript | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()", |