build: only check for Linux fstatfs on Linux

This check incorrectly passed on Cygwin. While Cygwin has the
statfs.f_type field, it contains the volume's FileSystemAttributes,
which aren't useful for detecting network mounts.
This commit is contained in:
James Ross-Gowan 2014-03-17 13:12:31 +11:00 committed by wm4
parent 791068d255
commit 065c301739
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ iconv support use --disable-iconv.",
}, {
'name': 'linux-fstatfs',
'desc': "Linux's fstatfs()",
'deps': [ 'os-linux' ],
'func': check_statement('sys/vfs.h',
'struct statfs fs; fstatfs(0, &fs); fs.f_namelen')
}, {