mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
Kfreebsd config, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3010 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
4
vl.c
4
vl.c
@@ -47,6 +47,8 @@
|
||||
#ifndef __APPLE__
|
||||
#include <libutil.h>
|
||||
#endif
|
||||
#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__)
|
||||
#include <freebsd/stdlib.h>
|
||||
#else
|
||||
#ifndef __sun__
|
||||
#include <linux/if.h>
|
||||
@@ -3451,7 +3453,7 @@ static TAPState *net_tap_fd_init(VLANState *vlan, int fd)
|
||||
return s;
|
||||
}
|
||||
|
||||
#ifdef _BSD
|
||||
#if defined (_BSD) || defined (__FreeBSD_kernel__)
|
||||
static int tap_open(char *ifname, int ifname_size)
|
||||
{
|
||||
int fd;
|
||||
|
||||
Reference in New Issue
Block a user