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:
ths 2007-06-23 16:03:36 +00:00
parent 0cfec834c5
commit 5c40d2bd48
2 changed files with 9 additions and 1 deletions

6
configure vendored
View File

@ -112,6 +112,12 @@ OS_CFLAGS="-mno-cygwin"
MINGW32*) MINGW32*)
mingw32="yes" mingw32="yes"
;; ;;
GNU/kFreeBSD)
oss="yes"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
kqemu="yes"
fi
;;
FreeBSD) FreeBSD)
bsd="yes" bsd="yes"
oss="yes" oss="yes"

4
vl.c
View File

@ -47,6 +47,8 @@
#ifndef __APPLE__ #ifndef __APPLE__
#include <libutil.h> #include <libutil.h>
#endif #endif
#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__)
#include <freebsd/stdlib.h>
#else #else
#ifndef __sun__ #ifndef __sun__
#include <linux/if.h> #include <linux/if.h>
@ -3451,7 +3453,7 @@ static TAPState *net_tap_fd_init(VLANState *vlan, int fd)
return s; return s;
} }
#ifdef _BSD #if defined (_BSD) || defined (__FreeBSD_kernel__)
static int tap_open(char *ifname, int ifname_size) static int tap_open(char *ifname, int ifname_size)
{ {
int fd; int fd;