aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 01:42:22 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 01:42:22 +0000
commitb29fe3ed48c72e6a30a29c7fbdf3b841c59551c5 (patch)
tree9e7d103d523da09947398564fae5f90c9297121e /net.c
parent14f87098c07c33cc46fb7510be739e63c3a9be07 (diff)
downloadqemu-b29fe3ed48c72e6a30a29c7fbdf3b841c59551c5.zip
qemu-b29fe3ed48c72e6a30a29c7fbdf3b841c59551c5.tar.gz
qemu-b29fe3ed48c72e6a30a29c7fbdf3b841c59551c5.tar.bz2
Preliminary AIX support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5732 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'net.c')
-rw-r--r--net.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net.c b/net.c
index 215df5d..f4c3130 100644
--- a/net.c
+++ b/net.c
@@ -780,6 +780,12 @@ static int tap_open(char *ifname, int ifname_size)
fcntl(fd, F_SETFL, O_NONBLOCK);
return fd;
}
+#elif defined (_AIX)
+static int tap_open(char *ifname, int ifname_size)
+{
+ fprintf (stderr, "no tap on AIX\n");
+ return -1;
+}
#else
static int tap_open(char *ifname, int ifname_size)
{
@@ -1441,6 +1447,7 @@ int net_client_init(const char *device, const char *p)
vlan->nb_host_devs++;
ret = tap_win32_init(vlan, ifname);
} else
+#elif defined (_AIX)
#else
if (!strcmp(device, "tap")) {
char ifname[64];