Skip to content

Commit

Permalink
Try to include relevant parts of macos if_utun.h
Browse files Browse the repository at this point in the history
To compile without it (pre 10.6)

See bug #98
  • Loading branch information
yarrick committed Jul 15, 2024
1 parent ec5c89a commit 6be4746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6be4746

Please sign in to comment.