summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2014-03-17 13:12:31 +1100
committerwm4 <wm4@nowhere>2014-03-17 18:28:29 +0100
commit065c3017391bed18dd3fb5bc69f5a4ee6da61203 (patch)
tree17c877ce9293c5a4a8e3f8b8070f7f8579bd49d0
parent791068d255f8444d9b144a3f7cc9259075fbb2fd (diff)
downloadmpv-065c3017391bed18dd3fb5bc69f5a4ee6da61203.tar.bz2
mpv-065c3017391bed18dd3fb5bc69f5a4ee6da61203.tar.xz
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.
-rw-r--r--wscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/wscript b/wscript
index fd58220913..af3b283fce 100644
--- a/wscript
+++ b/wscript
@@ -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')
}, {