diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-07 01:29:49 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-07 01:29:49 +0200 |
commit | 0e18007eda171cc96f53fa668a09537287af3b8e (patch) | |
tree | 4897524529e5e9bbbda4bc7e2f4f1b23ee1f40c0 /src | |
parent | 745352a97a140eaa58d733f762a967bb80166175 (diff) | |
download | fastd-0e18007eda171cc96f53fa668a09537287af3b8e.tar fastd-0e18007eda171cc96f53fa668a09537287af3b8e.zip |
Include net/if_tun.h instead of linux/if_tun.h on non-Linux systems
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; |