From b115de21990ecb1a2f377a73d07ff26e35980aba Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 7 Dec 2013 22:54:02 +0100 Subject: [PATCH] Use hardcoded value for TUNNEWPPA if net/if_tun.h is missing on Solaris. --- src/solaris/device.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.5