$NetBSD: patch-wscript,v 1.6 2020/12/19 11:27:51 leot Exp $

Enable support for DRM on NetBSD.

--- wscript.orig	2020-11-22 17:46:28.000000000 +0000
+++ wscript
@@ -268,6 +268,11 @@ iconv support use --disable-iconv.",
         'func': check_statement(['sys/consio.h', 'sys/ioctl.h'],
                                 'int m; ioctl(0, VT_GETMODE, &m)'),
     }, {
+        'name': 'wsdisplay_usl_io.h',
+        'desc': 'wsdisplay_usl_io.h',
+        'func': check_statement(['sys/types.h', 'dev/wscons/wsdisplay_usl_io.h', 'sys/ioctl.h'],
+                                'int m; ioctl(0, VT_GETMODE, &m)'),
+    }, {
         'name': 'gbm.h',
         'desc': 'gbm.h',
         'func': check_cc(header_name=['stdio.h', 'gbm.h']),
@@ -477,7 +482,7 @@ video_output_features = [
     }, {
         'name': '--drm',
         'desc': 'DRM',
-        'deps': 'vt.h || consio.h',
+        'deps': 'vt.h || consio.h || wsdisplay_usl_io.h',
         'func': check_pkg_config('libdrm', '>= 2.4.74'),
     }, {
         'name': '--gbm',
