Commit 5c40d2bd4836636b762906bf1516c30b0ed5d74c
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,6 +112,12 @@ OS_CFLAGS="-mno-cygwin" | ||
| 112 | MINGW32*) | 112 | MINGW32*) |
| 113 | mingw32="yes" | 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 | FreeBSD) | 121 | FreeBSD) |
| 116 | bsd="yes" | 122 | bsd="yes" |
| 117 | oss="yes" | 123 | oss="yes" |
vl.c
| @@ -47,6 +47,8 @@ | @@ -47,6 +47,8 @@ | ||
| 47 | #ifndef __APPLE__ | 47 | #ifndef __APPLE__ |
| 48 | #include <libutil.h> | 48 | #include <libutil.h> |
| 49 | #endif | 49 | #endif |
| 50 | +#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__) | ||
| 51 | +#include <freebsd/stdlib.h> | ||
| 50 | #else | 52 | #else |
| 51 | #ifndef __sun__ | 53 | #ifndef __sun__ |
| 52 | #include <linux/if.h> | 54 | #include <linux/if.h> |
| @@ -3451,7 +3453,7 @@ static TAPState *net_tap_fd_init(VLANState *vlan, int fd) | @@ -3451,7 +3453,7 @@ static TAPState *net_tap_fd_init(VLANState *vlan, int fd) | ||
| 3451 | return s; | 3453 | return s; |
| 3452 | } | 3454 | } |
| 3453 | 3455 | ||
| 3454 | -#ifdef _BSD | 3456 | +#if defined (_BSD) || defined (__FreeBSD_kernel__) |
| 3455 | static int tap_open(char *ifname, int ifname_size) | 3457 | static int tap_open(char *ifname, int ifname_size) |
| 3456 | { | 3458 | { |
| 3457 | int fd; | 3459 | int fd; |