VirtualBox

Changeset 86138 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 16, 2020 5:12:55 PM (4 years ago)
Author:
vboxsync
Message:

Main: bugref:9224: Moved definition of the NVME_IOCTL_ID into cpp file allowing build for different kernel versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/linux/HostHardwareLinux.cpp

    r86137 r86138  
    4040
    4141#include <linux/version.h>
    42 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0)
    43 # include <linux/nvme_ioctl.h>
    44 #else
    45 # include <linux/nvme.h>
    46 #endif
    4742#include <scsi/scsi.h>
    4843
     
    6863#include <sys/types.h>
    6964#include <sys/sysmacros.h>
     65
     66/*
     67 * Define NVME constant here to allow building
     68 * on several kernel versions even if the
     69 * building host doesn't contain certain NVME
     70 * includes
     71 */
     72#define NVME_IOCTL_ID _IO('N', 0x40)
    7073
    7174
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