diff options
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -47,6 +47,7 @@ #include <libutil.h> #endif #else +#ifndef __sun__ #include <linux/if.h> #include <linux/if_tun.h> #include <pty.h> @@ -55,6 +56,7 @@ #include <linux/ppdev.h> #endif #endif +#endif #if defined(CONFIG_SLIRP) #include "libslirp.h" @@ -2531,6 +2533,12 @@ static int tap_open(char *ifname, int ifname_size) fcntl(fd, F_SETFL, O_NONBLOCK); return fd; } +#elif defined(__sun__) +static int tap_open(char *ifname, int ifname_size) +{ + fprintf(stderr, "warning: tap_open not yet implemented\n"); + return -1; +} #else static int tap_open(char *ifname, int ifname_size) { |