mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
c6a97a0696
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1923 311d38ba-8fff-0310-9ca6-ca027cbcb966
45 lines
1.1 KiB
Diff
45 lines
1.1 KiB
Diff
---
|
|
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;
|