From 5c40d2bd4836636b762906bf1516c30b0ed5d74c Mon Sep 17 00:00:00 2001 From: ths Date: Sat, 23 Jun 2007 16:03:36 +0000 Subject: [PATCH] Kfreebsd config, by Aurelien Jarno. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3010 c046a42c-6fe2-441c-8c8c-71466251a162 --- configure | 6 ++++++ vl.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 793d9d156d..b9504a5288 100755 --- a/configure +++ b/configure @@ -112,6 +112,12 @@ OS_CFLAGS="-mno-cygwin" MINGW32*) mingw32="yes" ;; +GNU/kFreeBSD) +oss="yes" +if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then + kqemu="yes" +fi +;; FreeBSD) bsd="yes" oss="yes" diff --git a/vl.c b/vl.c index 88f4177529..4def8abfee 100644 --- a/vl.c +++ b/vl.c @@ -47,6 +47,8 @@ #ifndef __APPLE__ #include #endif +#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__) +#include #else #ifndef __sun__ #include @@ -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; -- 2.34.1