Skip to content

Commit

Permalink
Don't use linux/if_tun.h
Browse files Browse the repository at this point in the history
This allows to build easily with other libc.
  • Loading branch information
angt committed Dec 21, 2016
1 parent 521d02e commit bd102c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
#include <net/if.h>

#ifdef __linux__
#include <linux/if_tun.h>
#define IFF_TUN 0x0001
#define IFF_NO_PI 0x1000
#define TUNSETIFF _IOW('T', 202, int)
#endif

#ifdef __APPLE__
Expand Down

0 comments on commit bd102c5

Please sign in to comment.