diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2008-01-28 15:01:26 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-01-28 15:01:26 +0000 |
commit | 2a7d6f00f3b73eef0a1e83829fabc79577ec60af (patch) | |
tree | 2fbcddcd60cd12f81b262b07893c549babe8a6cf /packages/qemu/qemu-0.9.0+cvs20070613/65_kfreebsd.patch | |
parent | 37630086504c668adf55b3709f6e9b908cb07884 (diff) |
qemu: Remove versions with negative default preferences and cleanup
Diffstat (limited to 'packages/qemu/qemu-0.9.0+cvs20070613/65_kfreebsd.patch')
-rw-r--r-- | packages/qemu/qemu-0.9.0+cvs20070613/65_kfreebsd.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/packages/qemu/qemu-0.9.0+cvs20070613/65_kfreebsd.patch b/packages/qemu/qemu-0.9.0+cvs20070613/65_kfreebsd.patch new file mode 100644 index 0000000000..ea060811a1 --- /dev/null +++ b/packages/qemu/qemu-0.9.0+cvs20070613/65_kfreebsd.patch @@ -0,0 +1,44 @@ +--- + configure | 6 ++++++ + vl.c | 4 +++- + 2 files changed, 9 insertions(+), 1 deletion(-) + +Index: configure +=================================================================== +--- configure.orig 2007-06-13 11:48:22.000000000 +0100 ++++ configure 2007-06-13 11:52:07.000000000 +0100 +@@ -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 +=================================================================== +--- vl.c.orig 2007-06-13 11:51:54.000000000 +0100 ++++ vl.c 2007-06-13 11:51:56.000000000 +0100 +@@ -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> +@@ -3454,7 +3456,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; |