vo_drm: disable VT switcher for non-Linux systems

This commit is contained in:
Marcin Kurczewski 2015-04-19 09:09:37 +02:00 committed by wm4
parent 1dcc38a7c2
commit bd5d047c89
2 changed files with 10 additions and 3 deletions

View File

@ -22,14 +22,15 @@
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/vt.h>
#include <poll.h>
#include <signal.h>
#include <stdbool.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <libswscale/swscale.h>
#include <sys/mman.h>
#include <sys/vt.h>
#include <unistd.h>
#include <libswscale/swscale.h>
#include <xf86drm.h>
#include <xf86drmMode.h>

View File

@ -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',