From e1a4e77d5a05edc37a1668c7f181fd58f3953cc5 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 28 Oct 2019 11:27:02 -0400 Subject: [PATCH] fix compile error on freebsd --- vendor/libtuntap-master/tuntap-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/libtuntap-master/tuntap-unix.c b/vendor/libtuntap-master/tuntap-unix.c index cfb729b2b..564f935ae 100644 --- a/vendor/libtuntap-master/tuntap-unix.c +++ b/vendor/libtuntap-master/tuntap-unix.c @@ -381,7 +381,7 @@ tuntap_set_debug(struct device *dev, int set) return 0; } -#ifndef Darwin +#if defined(__linux__) if(ioctl(dev->tun_fd, TUNSETDEBUG, &set) == -1) { switch(set)