VirtualBox

Ignore:
Timestamp:
Sep 10, 2019 7:25:36 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133253
Message:

Additions/linux: ticketref:18917: VBox 6.0.10 GAs fail to compile on Red Hat/CentOS/OL 7.7; also Red Hat 8.1 Beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c

    r76859 r80712  
    3535#include <iprt/errcore.h>
    3636
     37#ifdef RHEL_RELEASE_CODE
     38# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 1)
     39#  define RHEL_81
     40# endif
     41#endif
    3742
    3843RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_t cb)
     
    6772{
    6873    IPRT_LINUX_SAVE_EFL_AC();
    69 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
     74#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) || defined(RHEL_81)
    7075    bool fRc = access_ok((void *)R3Ptr, 1);
    7176#else
     
    8792#else
    8893# error "PORT ME"
    89 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
     94#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) || defined(RHEL_81)
    9095    return !access_ok(pv, 1);
    9196#else
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