VirtualBox

Changeset 40941 in vbox for trunk/include


Ignore:
Timestamp:
Apr 16, 2012 2:34:59 PM (13 years ago)
Author:
vboxsync
Message:

runtime: smaller linux 3.4-rc3 build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/types.h

    r40915 r40941  
    126126#   define __inline __inline
    127127#  endif
    128 #  include <linux/types.h>
    129 #  include <linux/stddef.h>
     128#  if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
     129#   undef __KERNEL__
     130    /**
     131     * linux 3.4-rc3 unconditionally defines NULL in as ((void *)0)
     132     * don't let it break our build
     133     */
     134#   include <linux/stddef.h>
     135#   define __KERNEL__
     136#   include <linux/types.h>
     137#  else
     138#   include <linux/types.h>
     139#   include <linux/stddef.h>
     140#  endif
    130141#  undef uintptr_t
    131142#  ifdef __GNUC__
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