Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emulators/virtualbox-ose-additions-legacy: Remove devclass from DRIVE…
…R_MODULE on recent main. Reviewed by: madpilot Differential Revision: https://reviews.freebsd.org/D35953
- Loading branch information
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_drm_vboxvideo__drm.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- src/VBox/Additions/freebsd/drm/vboxvideo_drm.c.orig 2022-07-26 17:36:57 UTC | ||
+++ src/VBox/Additions/freebsd/drm/vboxvideo_drm.c | ||
@@ -154,10 +154,14 @@ static driver_t vboxvideo_driver = { | ||
sizeof(struct drm_device) | ||
}; | ||
|
||
+#if __FreeBSD_version >= 1400058 | ||
+DRIVER_MODULE(vboxvideo, vgapci, vboxvideo_driver, 0, 0); | ||
+#else | ||
extern devclass_t drm_devclass; | ||
#if __FreeBSD_version >= 700010 | ||
DRIVER_MODULE(vboxvideo, vgapci, vboxvideo_driver, drm_devclass, 0, 0); | ||
#else | ||
DRIVER_MODULE(vboxvideo, pci, vboxvideo_driver, drm_devclass, 0, 0); | ||
+#endif | ||
#endif | ||
MODULE_DEPEND(vboxvideo, drm, 1, 1, 1); |