summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-02-17 12:51:38 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-02-17 19:39:49 +0100
commit689646962ea4bfd83b37a898f5669be071d3e17d (patch)
tree1bfb1601a898c7d151835da2099c644fa6cf2f56 /wscript
parent5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6 (diff)
downloadmpv-689646962ea4bfd83b37a898f5669be071d3e17d.tar.bz2
mpv-689646962ea4bfd83b37a898f5669be071d3e17d.tar.xz
stream_file: activate cache with files on network file systems
Detected 'protocols' are AFP, nfs, smb and webdav. This can be extended on request. This is currently only implemented for BSD systems (using fstatfs). This addresses issue #558 on the above platforms.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index de70718555..2292a44747 100644
--- a/wscript
+++ b/wscript
@@ -197,6 +197,11 @@ iconv support use --disable-iconv.",
'desc': 'setmode()',
'func': check_statement('io.h', 'setmode(0, 0)')
}, {
+ 'name': 'bsd-fstatfs',
+ 'desc': "BSD's fstatfs()",
+ 'func': check_statement(['sys/param.h', 'sys/mount.h'],
+ 'struct statfs fs; fstatfs(0, &fs)')
+ }, {
'name': 'sys-sysinfo-h',
'desc': 'sys/sysinfo.h',
'func': check_statement('sys/sysinfo.h',