From: Guus Sliepen Date: Sat, 7 Dec 2013 21:54:02 +0000 (+0100) Subject: Use hardcoded value for TUNNEWPPA if net/if_tun.h is missing on Solaris. X-Git-Tag: import-tinc-1.1~37 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=b115de21990ecb1a2f377a73d07ff26e35980aba;p=meshlink Use hardcoded value for TUNNEWPPA if net/if_tun.h is missing on Solaris. --- diff --git a/src/solaris/device.c b/src/solaris/device.c index 303da913..351999cd 100644 --- a/src/solaris/device.c +++ b/src/solaris/device.c @@ -33,7 +33,11 @@ #include "../route.h" #include "../utils.h" #include "../xalloc.h" -#include "../if_tun.h" + +#ifndef TUNNEWPPA +#warning Missing net/if_tun.h, using hardcoded value for TUNNEWPPA +#define TUNNEWPPA (('T'<<16) | 0x0001) +#endif #define DEFAULT_TUN_DEVICE "/dev/tun" #define DEFAULT_TAP_DEVICE "/dev/tap" @@ -46,7 +50,6 @@ static enum { int device_fd = -1; static int if_fd = -1; static int ip_fd = -1; -static int arp_fd = -1; char *device = NULL; char *iface = NULL; static char *device_info = NULL;