Created
April 5, 2013 18:25
-
-
Save fkumro/5321485 to your computer and use it in GitHub Desktop.
Patch for Virtual Box Additions 4.2.10 and CentOS 6.4 execute patch in /usr/src/vboxguest-4.2.10/vboxvideo patch < patch_name.patch then run /etc/init.d/vboxadd setup Patch credit goes to dmischa (https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=41693&forum=55)
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
--- vboxvideo_drm.c.ori 2013-03-01 12:11:52.146639050 +0100 | |
+++ vboxvideo_drm.c 2013-03-01 12:18:57.231061446 +0100 | |
@@ -70,6 +70,9 @@ | |
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,3) | |
# define DRM_RHEL63 | |
# endif | |
+# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,4) | |
+# define DRM_RHEL64 | |
+# endif | |
# endif | |
# endif | |
@@ -106,7 +109,7 @@ | |
{ | |
/* .driver_features = DRIVER_USE_MTRR, */ | |
.load = vboxvideo_driver_load, | |
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0) | |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0) && !defined(DRM_RHEL64) | |
.reclaim_buffers = drm_core_reclaim_buffers, | |
#endif | |
/* As of Linux 2.6.37, always the internal functions are used. */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment