VirtualBox

Changeset 42164 in vbox


Ignore:
Timestamp:
Jul 16, 2012 12:55:41 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79143
Message:

Additions/linux/drm: make the kernel module work with CentOS 6.3 and friends.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c

    r39832 r42164  
    6868#    define DRM_RHEL61
    6969#   endif
     70#   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,3)
     71#    define DRM_RHEL63
     72#   endif
    7073#  endif
    7174# endif
     
    8689#endif
    8790}
    88 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
     91#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) || defined(DRM_RHEL63)
    8992/* since linux-3.3.0-rc1 drm_driver::fops is pointer */
    9093static struct file_operations driver_fops =
     
    110113    .get_reg_ofs = drm_core_get_reg_ofs,
    111114#endif
    112 # if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
     115# if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) && !defined(DRM_RHEL63)
    113116    .fops =
    114117    {
     
    127130        .fasync = drm_fasync,
    128131    },
    129 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) */
     132#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) || defined(DRM_RHEL63) */
    130133    .fops = &driver_fops,
    131134#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette