VirtualBox

Changeset 85582 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 31, 2020 4:38:53 PM (4 years ago)
Author:
vboxsync
Message:

HostDrivers: ticketref:19724 Cannot install on OpenSUSE Leap 15.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r82968 r85582  
    212212#endif
    213213
     214#if defined(CONFIG_SUSE_VERSION)
     215# if CONFIG_SUSE_VERSION == 15 && CONFIG_SUSE_PATCHLEVEL == 2
     216#  define OPENSUSE_152
     217# endif
     218#endif
    214219
    215220/*********************************************************************************************************************************
     
    925930    {
    926931        skb_frag_t *pFrag = &skb_shinfo(pBuf)->frags[i];
    927 # if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
     932# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) || defined(OPENSUSE_152)
    928933        pSG->aSegs[iSeg].cb = pFrag->bv_len;
    929934        pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset;
     
    946951        {
    947952            skb_frag_t *pFrag = &skb_shinfo(pFragBuf)->frags[i];
    948 # if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
     953# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) || defined(OPENSUSE_152)
    949954            pSG->aSegs[iSeg].cb = pFrag->bv_len;
    950955            pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset;
Note: See TracChangeset for help on using the changeset viewer.

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