diff options
Diffstat (limited to 'meta/packages/qemu/files/65_kfreebsd.patch')
-rw-r--r-- | meta/packages/qemu/files/65_kfreebsd.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/packages/qemu/files/65_kfreebsd.patch b/meta/packages/qemu/files/65_kfreebsd.patch new file mode 100644 index 0000000000..ea060811a1 --- /dev/null +++ b/meta/packages/qemu/files/65_kfreebsd.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | --- | ||
2 | configure | 6 ++++++ | ||
3 | vl.c | 4 +++- | ||
4 | 2 files changed, 9 insertions(+), 1 deletion(-) | ||
5 | |||
6 | Index: configure | ||
7 | =================================================================== | ||
8 | --- configure.orig 2007-06-13 11:48:22.000000000 +0100 | ||
9 | +++ configure 2007-06-13 11:52:07.000000000 +0100 | ||
10 | @@ -112,6 +112,12 @@ OS_CFLAGS="-mno-cygwin" | ||
11 | MINGW32*) | ||
12 | mingw32="yes" | ||
13 | ;; | ||
14 | +GNU/kFreeBSD) | ||
15 | +oss="yes" | ||
16 | +if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then | ||
17 | + kqemu="yes" | ||
18 | +fi | ||
19 | +;; | ||
20 | FreeBSD) | ||
21 | bsd="yes" | ||
22 | oss="yes" | ||
23 | Index: vl.c | ||
24 | =================================================================== | ||
25 | --- vl.c.orig 2007-06-13 11:51:54.000000000 +0100 | ||
26 | +++ vl.c 2007-06-13 11:51:56.000000000 +0100 | ||
27 | @@ -47,6 +47,8 @@ | ||
28 | #ifndef __APPLE__ | ||
29 | #include <libutil.h> | ||
30 | #endif | ||
31 | +#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__) | ||
32 | +#include <freebsd/stdlib.h> | ||
33 | #else | ||
34 | #ifndef __sun__ | ||
35 | #include <linux/if.h> | ||
36 | @@ -3454,7 +3456,7 @@ static TAPState *net_tap_fd_init(VLANSta | ||
37 | return s; | ||
38 | } | ||
39 | |||
40 | -#ifdef _BSD | ||
41 | +#if defined (_BSD) || defined (__FreeBSD_kernel__) | ||
42 | static int tap_open(char *ifname, int ifname_size) | ||
43 | { | ||
44 | int fd; | ||