Hi, The patch below, taken from the Debian package, adds support for GNU/kFreeBSD.
Bye, Aurelien Index: configure =================================================================== RCS file: /sources/qemu/qemu/configure,v retrieving revision 1.145 diff -u -d -p -r1.145 configure --- configure 26 May 2007 16:38:53 -0000 1.145 +++ configure 22 Jun 2007 22:16:44 -0000 @@ -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" Index: vl.c =================================================================== RCS file: /sources/qemu/qemu/vl.c,v retrieving revision 1.310 diff -u -d -p -r1.310 vl.c --- vl.c 22 Jun 2007 08:23:44 -0000 1.310 +++ vl.c 22 Jun 2007 22:16:44 -0000 @@ -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(VLANSta return s; } -#ifdef _BSD +#if defined (_BSD) || defined (__FreeBSD_kernel__) static int tap_open(char *ifname, int ifname_size) { int fd; -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `- people.debian.org/~aurel32 | www.aurel32.net