patch-libtun6_tun6_c 527 B

123456789101112131415
  1. --- miredo-1.2.6.orig/libtun6/tun6.c 2012-09-12 15:03:59.000000000 +0200
  2. +++ miredo-1.2.6/libtun6/tun6.c 2013-12-23 17:23:42.000000000 +0100
  3. @@ -53,7 +53,12 @@
  4. const char os_driver[] = "Linux";
  5. # define USE_LINUX 1
  6. +#if defined(__GLIBC__)
  7. # include <linux/if_tun.h> // TUNSETIFF - Linux tunnel driver
  8. +#else
  9. +#define IFF_TUN 0x0001
  10. +#define TUNSETIFF _IOW('T', 202, int)
  11. +#endif
  12. /*
  13. * <linux/ipv6.h> conflicts with <netinet/in.h> and <arpa/inet.h>,
  14. * so we've got to declare this structure by hand.