aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-25 22:36:06 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-25 22:36:06 +0000
commitec530c81efea6ddb1f75758658fd6769a29c3ade (patch)
tree2d8afdd2021666eaf854195ed0a32603b97044f5 /vl.c
parent96b74a0221a7d552a4b3016af2b8bc87628fdab3 (diff)
downloadqemu-ec530c81efea6ddb1f75758658fd6769a29c3ade.zip
qemu-ec530c81efea6ddb1f75758658fd6769a29c3ade.tar.gz
qemu-ec530c81efea6ddb1f75758658fd6769a29c3ade.tar.bz2
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 3b83ed2..8b6b33c 100644
--- a/vl.c
+++ b/vl.c
@@ -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)
{