Make Solaris build more user-friendly w.r.t. installing TAP driver.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 8 May 2010 19:14:51 +0000 (20:14 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 8 May 2010 19:14:51 +0000 (20:14 +0100)
Tell the user what to do if the TAP driver is missing, and don't rely on them
removing Make.config so that the Makefile goes looking for it again.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
tun.c

diff --git a/tun.c b/tun.c
index 1ff4b24..a581327 100644 (file)
--- a/tun.c
+++ b/tun.c
 #if defined(__sun__)
 #include <stropts.h>
 #include <sys/sockio.h>
+#include <net/if_tun.h>
+#ifndef TUNNEWPPA
+#error "Install TAP driver from http://www.whiteboard.ne.jp/~admin2/tuntap/"
+#endif
 #endif
 
 #include "openconnect.h"