mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 23:52:14 -06:00
Preliminary AIX support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5732 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
14f87098c0
commit
b29fe3ed48
7 changed files with 79 additions and 4 deletions
7
net.c
7
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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue