diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fastd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c index 22f292f..6f6a501 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -32,7 +32,6 @@ #include <fcntl.h> #include <grp.h> -#include <linux/if_tun.h> #include <net/if.h> #include <poll.h> #include <pthread.h> @@ -42,6 +41,12 @@ #include <sys/resource.h> #include <sys/socket.h> +#ifdef __linux__ +#include <linux/if_tun.h> +#else +#include <net/if_tun.h> +#endif + static volatile bool sighup = false; static volatile bool terminate = false; |