diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-25 22:36:06 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-25 22:36:06 +0000 |
commit | ec530c81efea6ddb1f75758658fd6769a29c3ade (patch) | |
tree | 2d8afdd2021666eaf854195ed0a32603b97044f5 /vl.c | |
parent | 96b74a0221a7d552a4b3016af2b8bc87628fdab3 (diff) |
Solaris port (Ben Taylor)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1855 c046a42c-6fe2-441c-8c8c-71466251a162
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) { |