VirtualBox

Ignore:
Timestamp:
Nov 29, 2021 10:05:23 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148513
Message:

VBoxGuest/darwin,IPRT/r0drv/darwin: Clang 13 build fixes.

Location:
trunk/src/VBox/Runtime/r0drv/darwin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h

    r85124 r92621  
    9090#include <IOKit/IOTypes.h>
    9191#include <IOKit/IOLib.h> /* Note! Has Assert down as a function. */
     92#define _OS_OSUNSERIALIZE_H /* HACK ALERT! Block importing OSUnserialized.h as it causes compilation trouble with
     93                               newer clang versions and the 10.15 SDK, and we really don't need it. Sample error:
     94                               libkern/c++/OSUnserialize.h:72:2: error: use of OSPtr outside of a return type [-Werror,-Wossharedptr-misuse] */
    9295#include <IOKit/IOMemoryDescriptor.h>
    9396#include <IOKit/IOBufferMemoryDescriptor.h>
  • trunk/src/VBox/Runtime/r0drv/darwin/time-r0drv-darwin.cpp

    r82968 r92621  
    9494#endif
    9595    clock_get_calendar_nanotime(&uSecs, &uNanosecs);
    96     return RTTimeSpecSetNano(pTime, (uint64_t)uSecs * RT_NS_1SEC + uNanosecs);
     96    return RTTimeSpecSetNano(pTime, (int64_t)uSecs * RT_NS_1SEC + uNanosecs);
    9797}
    9898
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette