VirtualBox

Changeset 16331 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jan 28, 2009 8:27:11 PM (16 years ago)
Author:
vboxsync
Message:

time-r0drv-darwin.cpp: 10.6 build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/time-r0drv-darwin.cpp

    r8245 r16331  
    120120RTDECL(PRTTIMESPEC) RTTimeNow(PRTTIMESPEC pTime)
    121121{
    122     uint32_t u32Secs;
    123     uint32_t u32Nanosecs;
    124     clock_get_calendar_nanotime(&u32Secs, &u32Nanosecs);
    125     return RTTimeSpecSetNano(pTime, (uint64_t)u32Secs * 1000000000 + u32Nanosecs);
     122#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
     123    uint32_t        uSecs;
     124    uint32_t        uNanosecs;
     125#else
     126    clock_sec_t     uSecs;
     127    clock_nsec_t    uNanosecs;
     128#endif
     129    clock_get_calendar_nanotime(&uSecs, &uNanosecs);
     130    return RTTimeSpecSetNano(pTime, (uint64_t)uSecs * 1000000000 + uNanosecs);
    126131}
    127132
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