From 427709575d0a1f62401f1d990bdec076a8f82ca5 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 21 Sep 2019 20:17:32 +0000 Subject: build: detect VT_GETMODE on FreeBSD and DragonFly $ ./waf configure Checking for vt.h : no Checking for DRM : vt.h not found [...] ../test.c:1:10: fatal error: 'sys/vt.h' file not found #include ^~~~~~~~~~ $ build/mpv --gpu-context=drm /path/to/video.mkv Error parsing option gpu-context (option parameter could not be parsed) Setting commandline option --gpu-context=drm failed. Exiting... (Fatal error) --- video/out/drm_common.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'video/out/drm_common.c') diff --git a/video/out/drm_common.c b/video/out/drm_common.c index 4ecad6f0c4..4a6349ebbe 100644 --- a/video/out/drm_common.c +++ b/video/out/drm_common.c @@ -21,12 +21,19 @@ #include #include #include -#include #include #include #include #include +#include "config.h" + +#if HAVE_CONSIO_H +#include +#else +#include +#endif + #include "drm_common.h" #include "common/common.h" -- cgit v1.2.3