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.
This commit is contained in:
wm4
2014-03-12 00:49:16 +01:00
parent ac4b9a47ce
commit b05803c2e1

View File

@@ -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()",