VirtualBox

Ignore:
Timestamp:
Jun 7, 2011 1:45:11 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72115
Message:

Additions/linux/drm: RHEL6.1 compile fix

File:
1 edited

Legend:

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

    r36471 r37351  
    6363#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
    6464
     65# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32)
     66#  ifdef RHEL_RELEASE_CODE
     67#   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1)
     68#    define DRM_RHEL61
     69#   endif
     70#  endif
     71# endif
     72
    6573#include "drm/drmP.h"
    6674#include "vboxvideo_drm.h"
     
    8492    .load = vboxvideo_driver_load,
    8593    .reclaim_buffers = drm_core_reclaim_buffers,
    86     /* As of Linux 2.65.37, always the internal functions are used. */
    87 #if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 37)
     94    /* As of Linux 2.6.37, always the internal functions are used. */
     95#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 37) && !defined(DRM_RHEL61)
    8896    .get_map_ofs = drm_core_get_map_ofs,
    8997    .get_reg_ofs = drm_core_get_reg_ofs,
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