VirtualBox

Changeset 18058 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Mar 18, 2009 12:36:00 PM (16 years ago)
Author:
vboxsync
Message:

DrvHostDVD: fixed swab workaround for newer kernels

Location:
trunk/src/VBox/Devices/Storage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r16334 r18058  
    4343#elif defined RT_OS_LINUX
    4444# include <sys/ioctl.h>
     45# include <linux/version.h>
     46/* All the following crap is apparently not necessary anymore since Linux
     47 * version 2.6.22. Check for 2.6.23 to be in the safe side. */
     48# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
    4549/* This is a hack to work around conflicts between these linux kernel headers
    4650 * and the GLIBC tcpip headers. They have different declarations of the 4
    4751 * standard byte order functions. */
    48 # define _LINUX_BYTEORDER_GENERIC_H
     52#  define _LINUX_BYTEORDER_GENERIC_H
     53#  include <linux/byteorder/generic.h>
    4954/* This is another hack for not bothering with C++ unfriendly byteswap macros. */
    50 # define _LINUX_BYTEORDER_SWAB_H
    51 # define _LINUX_BYTEORDER_SWABB_H
    52 /* Those macros that are needed are defined in the header below */
    53 # include "swab.h"
     55/* Those macros that are needed are defined in the header below. */
     56#  include "swab.h"
     57# endif
    5458# include <linux/cdrom.h>
    5559# include <sys/fcntl.h>
  • trunk/src/VBox/Devices/Storage/swab.h

    r15776 r18058  
    3333#define _VBOX_LINUX_SWAB_H
    3434
    35 # define _LINUX_BYTEORDER_SWAB_H
    36 # define _LINUX_BYTEORDER_SWABB_H
     35#define _LINUX_BYTEORDER_SWAB_H
     36#define _LINUX_BYTEORDER_SWABB_H
    3737
    3838#include <asm/types.h>
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