mirror of https://github.com/mpv-player/mpv
vo_drm: disable VT switcher for non-Linux systems
This commit is contained in:
parent
1dcc38a7c2
commit
bd5d047c89
|
@ -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>
|
||||
|
||||
|
|
6
wscript
6
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',
|
||||
|
|
Loading…
Reference in New Issue