virtualbox/fixes_for_4.19.patch

17 lines
567 B
Diff

Index: VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c
===================================================================
--- VirtualBox-5.2.18.orig/src/VBox/Additions/linux/drm/vbox_mode.c
+++ VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c
@@ -703,7 +703,11 @@ static int vbox_connector_init(struct dr
drm_connector_register(connector);
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
+ drm_connector_attach_encoder(connector, encoder);
+#else
drm_mode_connector_attach_encoder(connector, encoder);
+#endif
return 0;
}