Fix build on macOS

This commit is contained in:
Michael 2019-01-10 17:49:38 +00:00
parent 167d5aca6d
commit e1d01262b8
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

View File

@ -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;