VirtualBox

Changeset 77122 in vbox


Ignore:
Timestamp:
Feb 1, 2019 3:17:02 PM (6 years ago)
Author:
vboxsync
Message:

iprt/types.h: Fix for recent FreeBSD versions

File:
1 edited

Legend:

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

    r76585 r77122  
    6060
    6161# elif defined(RT_OS_FREEBSD) && defined(_KERNEL)
     62#  include <sys/param.h>
     63#  undef PVM
     64#  if __FreeBSD_version < 1200000
    6265    /*
    6366     * Kludge for the FreeBSD kernel:
     
    6568     *  when compiling in kernel mode. This is just to make GCC shut up.
    6669     */
    67 #  ifndef _STDDEF_H_
    68 #   undef offsetof
    69 #  endif
    70 #  include <sys/stddef.h>
    71 #  ifndef _SYS_TYPES_H_
    72 #   undef offsetof
    73 #  endif
    74 #  include <sys/types.h>
    75 #  ifndef offsetof
    76 #   error "offsetof is not defined!"
     70#   ifndef _STDDEF_H_
     71#    undef offsetof
     72#   endif
     73#   include <sys/stddef.h>
     74#   ifndef _SYS_TYPES_H_
     75#    undef offsetof
     76#   endif
     77#   include <sys/types.h>
     78#   ifndef offsetof
     79#    error "offsetof is not defined!"
     80#   endif
     81#  else
     82#   include <sys/stddef.h>
     83#   include <sys/types.h>
    7784#  endif
    7885
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