From e1d01262b832b56cb3a90a79e63c9004da3f537d Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 10 Jan 2019 17:49:38 +0000 Subject: [PATCH] Fix build on macOS --- vendor/libtuntap-master/tuntap-unix-darwin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vendor/libtuntap-master/tuntap-unix-darwin.c b/vendor/libtuntap-master/tuntap-unix-darwin.c index 36a213ae9..67b48ea0c 100644 --- a/vendor/libtuntap-master/tuntap-unix-darwin.c +++ b/vendor/libtuntap-master/tuntap-unix-darwin.c @@ -44,9 +44,11 @@ #define APPLE_UTUN "com.apple.net.utun_control" #define UTUN_OPT_IFNAME 2 -static int -tuntap_sys_start(struct device *dev, int, int) +int +tuntap_sys_start(struct device *dev, int mode, int tun) { + (void)mode; + (void)tun; uint32_t namesz = IFNAMSIZ; char name[IFNAMSIZ + 1]; int fd;