summaryrefslogtreecommitdiff
path: root/multimedia/mpv/patches/patch-video_out_drm__common.c
blob: e567b76c4f3c2d50f4631e27d42e744c6ef9f5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-video_out_drm__common.c,v 1.3 2019/10/25 14:35:56 leot Exp $

Enable support for DRM on NetBSD.

--- video/out/drm_common.c.orig	2019-10-25 13:08:15.000000000 +0000
+++ video/out/drm_common.c
@@ -21,7 +21,12 @@
 #include <sys/ioctl.h>
 #include <poll.h>
 #include <sys/stat.h>
+#if defined(__NetBSD__)
+#include <sys/types.h>
+#include <dev/wscons/wsdisplay_usl_io.h>
+#else
 #include <sys/vt.h>
+#endif
 #include <unistd.h>
 #include <limits.h>
 #include <math.h>