summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-07 01:29:49 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-07 01:29:49 +0200
commit0e18007eda171cc96f53fa668a09537287af3b8e (patch)
tree4897524529e5e9bbbda4bc7e2f4f1b23ee1f40c0
parent745352a97a140eaa58d733f762a967bb80166175 (diff)
downloadfastd-0e18007eda171cc96f53fa668a09537287af3b8e.tar
fastd-0e18007eda171cc96f53fa668a09537287af3b8e.zip
Include net/if_tun.h instead of linux/if_tun.h on non-Linux systems
-rw-r--r--src/fastd.c7
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;