VirtualBox

Changeset 62860 in vbox


Ignore:
Timestamp:
Aug 2, 2016 1:18:24 AM (8 years ago)
Author:
vboxsync
Message:

iprt/time.h: NetBSD defines structs timeval and timespec in
<sys/time.h> so add its include guard to the lists that protect
relevant functions. To be on the safe side, only check that guard for
RT_OS_NETBSD (e.g. FreeBSD which uses the same guard).

File:
1 edited

Legend:

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

    r62473 r62860  
    354354
    355355/* PORTME: Add struct timeval guard macro here. */
    356 #if defined(RTTIME_INCL_TIMEVAL) || defined(_STRUCT_TIMEVAL) || defined(_SYS__TIMEVAL_H_) || defined(_SYS_TIME_H) || defined(_TIMEVAL) || defined(_LINUX_TIME_H)
     356#if defined(RTTIME_INCL_TIMEVAL) || defined(_STRUCT_TIMEVAL) || defined(_SYS__TIMEVAL_H_) || defined(_SYS_TIME_H) || defined(_TIMEVAL) || defined(_LINUX_TIME_H) \
     357 || (defined(RT_OS_NETBSD) && defined(_SYS_TIME_H_))
    357358/**
    358359 * Gets the time as POSIX timeval.
     
    392393
    393394/* PORTME: Add struct timespec guard macro here. */
    394 #if defined(RTTIME_INCL_TIMESPEC) || defined(_STRUCT_TIMESPEC) || defined(_SYS__TIMESPEC_H_) || defined(TIMEVAL_TO_TIMESPEC) || defined(_TIMESPEC)
     395#if defined(RTTIME_INCL_TIMESPEC) || defined(_STRUCT_TIMESPEC) || defined(_SYS__TIMESPEC_H_) || defined(TIMEVAL_TO_TIMESPEC) || defined(_TIMESPEC) \
     396 || (defined(RT_OS_NETBSD) && defined(_SYS_TIME_H_))
    395397/**
    396398 * Gets the time as POSIX timespec.
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