From 6be47466f274b06b2921f9ba10dd4e02e360be89 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Mon, 15 Jul 2024 23:46:22 +0200 Subject: [PATCH] Try to include relevant parts of macos if_utun.h To compile without it (pre 10.6) See bug #98 --- src/tun.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tun.c b/src/tun.c index 379ca44..1f4585d 100644 --- a/src/tun.c +++ b/src/tun.c @@ -31,7 +31,9 @@ #include #include #include -#include +/* 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 #endif