diff --git a/src/tun.c b/src/tun.c index eaceea8..cd88ab1 100644 --- a/src/tun.c +++ b/src/tun.c @@ -265,5 +265,9 @@ tun_set_mtu(char *dev_name, int mtu) int tun_set_persist(int fd, int on) { +#ifdef TUNSETPERSIST return ioctl(fd, TUNSETPERSIST, on); +#else + return 0; +#endif }