From bd5d047c893cda0b533f9457a6fb2bfbd60de13e Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 19 Apr 2015 09:09:37 +0200 Subject: vo_drm: disable VT switcher for non-Linux systems --- video/out/vo_drm.c | 5 +++-- wscript | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index 6bce25ea0e..9c9f365254 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -22,14 +22,15 @@ #include #include #include -#include #include #include #include #include +#include +#include #include + #include -#include #include #include diff --git a/wscript b/wscript index 7597bdc58b..56f03202c1 100644 --- a/wscript +++ b/wscript @@ -234,6 +234,11 @@ iconv support use --disable-iconv.", 'name': 'fchmod', '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', @@ -634,6 +639,7 @@ video_output_features = [ }, { 'name': '--drm', 'desc': 'DRM', + 'deps': [ 'vt.h' ], 'func': check_pkg_config('libdrm'), }, { 'name': '--jpeg', -- cgit v1.2.3