Commit 5c40d2bd4836636b762906bf1516c30b0ed5d74c

Authored by ths
1 parent 0cfec834

Kfreebsd config, by Aurelien Jarno.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3010 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 2 changed files with 9 additions and 1 deletions
configure
... ... @@ -112,6 +112,12 @@ OS_CFLAGS="-mno-cygwin"
112 112 MINGW32*)
113 113 mingw32="yes"
114 114 ;;
  115 +GNU/kFreeBSD)
  116 +oss="yes"
  117 +if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
  118 + kqemu="yes"
  119 +fi
  120 +;;
115 121 FreeBSD)
116 122 bsd="yes"
117 123 oss="yes"
... ...
... ... @@ -47,6 +47,8 @@
47 47 #ifndef __APPLE__
48 48 #include <libutil.h>
49 49 #endif
  50 +#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__)
  51 +#include <freebsd/stdlib.h>
50 52 #else
51 53 #ifndef __sun__
52 54 #include <linux/if.h>
... ... @@ -3451,7 +3453,7 @@ static TAPState *net_tap_fd_init(VLANState *vlan, int fd)
3451 3453 return s;
3452 3454 }
3453 3455  
3454   -#ifdef _BSD
  3456 +#if defined (_BSD) || defined (__FreeBSD_kernel__)
3455 3457 static int tap_open(char *ifname, int ifname_size)
3456 3458 {
3457 3459 int fd;
... ...