summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorMarcin Kurczewski <mkurczew@gmail.com>2015-04-19 09:09:37 +0200
committerwm4 <wm4@nowhere>2015-04-19 21:18:12 +0200
commitbd5d047c893cda0b533f9457a6fb2bfbd60de13e (patch)
tree920f8921c61d8a85a68e3d44c61095a3c3d75ca8 /wscript
parent1dcc38a7c237f31ac441192ba88488b347e8419e (diff)
downloadmpv-bd5d047c893cda0b533f9457a6fb2bfbd60de13e.tar.bz2
mpv-bd5d047c893cda0b533f9457a6fb2bfbd60de13e.tar.xz
vo_drm: disable VT switcher for non-Linux systems
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/wscript b/wscript
index 7597bdc58b..56f03202c1 100644
--- a/wscript
+++ b/wscript
@@ -235,6 +235,11 @@ iconv support use --disable-iconv.",
'desc': 'fchmod()',
'func': check_statement('sys/stat.h', 'fchmod(0, 0)'),
}, {
+ 'name': 'vt.h',
+ 'desc': 'vt.h',
+ 'func': check_statement(['sys/vt.h', 'sys/ioctl.h'],
+ 'int m; ioctl(0, VT_GETMODE, &m)'),
+ }, {
'name': 'glibc-thread-name',
'desc': 'GLIBC API for setting thread name',
'func': check_statement('pthread.h',
@@ -634,6 +639,7 @@ video_output_features = [
}, {
'name': '--drm',
'desc': 'DRM',
+ 'deps': [ 'vt.h' ],
'func': check_pkg_config('libdrm'),
}, {
'name': '--jpeg',