Allow undefined TUNSETPERSIST

This commit is contained in:
Adrien Gallouët
2017-02-10 15:13:05 +00:00
parent 355040f576
commit 3c2481dc33

View File

@@ -265,5 +265,9 @@ tun_set_mtu(char *dev_name, int mtu)
int int
tun_set_persist(int fd, int on) tun_set_persist(int fd, int on)
{ {
#ifdef TUNSETPERSIST
return ioctl(fd, TUNSETPERSIST, on); return ioctl(fd, TUNSETPERSIST, on);
#else
return 0;
#endif
} }