* [Qemu-devel] [PATCH] GNU/kFreeBSD support
@ 2007-06-22 22:27 Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2007-06-22 22:27 UTC (permalink / raw)
To: qemu-devel
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
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Qemu-devel] [PATCH] GNU/kFreeBSD support
@ 2008-01-28 19:28 Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2008-01-28 19:28 UTC (permalink / raw)
To: qemu-devel
The small patch below adds support for GNU/kFreeBSD (FreeBSD kernel with
GNU userland).
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
configure | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 96cf1d1..3f24645 100755
--- a/configure
+++ b/configure
@@ -132,6 +132,12 @@ if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
kqemu="yes"
fi
;;
+GNU/kFreeBSD)
+oss="yes"
+if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
+ kqemu="yes"
+fi
+;;
FreeBSD)
bsd="yes"
oss="yes"
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-28 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 19:28 [Qemu-devel] [PATCH] GNU/kFreeBSD support Aurelien Jarno
-- strict thread matches above, loose matches on Subject: below --
2007-06-22 22:27 Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).