VirtualBox

Changeset 62938 in vbox for trunk


Ignore:
Timestamp:
Aug 3, 2016 5:40:07 PM (8 years ago)
Author:
vboxsync
Message:

iprt/types.h: NetBSD support based on a patch from Arto Huusko.

File:
1 edited

Legend:

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

    r62473 r62938  
    8787#  define _UINTPTR_T_DECLARED
    8888#  define _INTPTR_T_DECLARED
     89#  include <sys/types.h>
     90
     91# elif defined(RT_OS_NETBSD) && defined(_KERNEL)
     92
    8993#  include <sys/types.h>
    9094
     
    208212typedef _Bool bool;
    209213#   endif
     214#  elif defined(RT_OS_NETBSD) && !defined(_KERNEL)
     215    /*
     216     * For the kernel code <stdbool.h> is not available, but bool is
     217     * provided by <sys/types.h> included above.
     218     */
     219#   include <stdbool.h>
    210220#  else
    211221#   if (defined(RT_OS_DARWIN) || defined(RT_OS_HAIKU)) && (defined(_STDBOOL_H) || defined(__STDBOOL_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