Try to include relevant parts of macos if_utun.h

To compile without it (pre 10.6)

See bug #98
This commit is contained in:
Erik Ekman 2024-07-15 23:46:22 +02:00
parent ec5c89a368
commit 6be47466f2

View File

@ -31,7 +31,9 @@
#include <sys/kern_control.h>
#include <sys/sys_domain.h>
#include <sys/ioctl.h>
#include <net/if_utun.h>
/* Inline used parts of if_utun.h to compile without it. */
#define UTUN_CONTROL_NAME "com.apple.net.utun_control"
#define UTUN_OPT_IFNAME 2
#include <netinet/ip.h>
#endif