VirtualBox

Ignore:
Timestamp:
Jul 14, 2020 6:46:00 PM (4 years ago)
Author:
vboxsync
Message:

VBoxNetFlt/darwin: Some adjustments for making it build against a 10.15 SDK. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/darwin/VBoxNetSend.h

    r82968 r85344  
    4040
    4141# include <sys/socket.h>
    42 # include <net/kpi_interface.h>
     42# if MAC_OS_X_VERSION_MIN_REQUIRED >= 101500 /* The 10.15 SDK has a slightly butchered API deprecation attempt. */
     43#  pragma clang diagnostic push
     44#  pragma clang diagnostic ignored "-Wmacro-redefined"      /* Each header redefines __NKE_API_DEPRECATED. */
     45#  pragma clang diagnostic ignored "-Wmissing-declarations" /* Misplaced __NKE_API_DEPRECATED; in kpi_mbuf.h. */
     46#  include <net/kpi_interface.h>
     47#  include <sys/kpi_mbuf.h>
     48#  include <net/if.h>
     49#  pragma clang diagnostic pop
     50# else /* < 10.15 */
     51#  include <net/kpi_interface.h>
    4352RT_C_DECLS_BEGIN /* Buggy 10.4 headers, fixed in 10.5. */
    44 # include <sys/kpi_mbuf.h>
     53#  include <sys/kpi_mbuf.h>
    4554RT_C_DECLS_END
    46 # include <net/if.h>
     55#  include <net/if.h>
     56# endif /* < 10.15 */
     57
    4758
    4859RT_C_DECLS_BEGIN
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