VirtualBox

Ticket #17771: fix.patch

File fix.patch, 741 bytes (added by gim, 6 years ago)
  • \vbox_drv.h

    old new  
    4444# include <linux/spinlock_types.h>
    4545#endif
    4646
     47#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
     48#define U8_MAX          ((u8)~0U)
     49#define S8_MAX          ((s8)(U8_MAX>>1))
     50#define S8_MIN          ((s8)(-S8_MAX - 1))
     51#define U16_MAX         ((u16)~0U)
     52#define S16_MAX         ((s16)(U16_MAX>>1))
     53#define S16_MIN         ((s16)(-S16_MAX - 1))
     54#define U32_MAX         ((u32)~0U)
     55#define S32_MAX         ((s32)(U32_MAX>>1))
     56#define S32_MIN         ((s32)(-S32_MAX - 1))
     57#define U64_MAX         ((u64)~0ULL)
     58#define S64_MAX         ((s64)(U64_MAX>>1))
     59#define S64_MIN         ((s64)(-S64_MAX - 1))
     60#endif
     61
    4762#include <linux/genalloc.h>
    4863#include <linux/io.h>
    4964#include <linux/string.h>

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