aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-23 16:03:36 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-23 16:03:36 +0000
commit5c40d2bd4836636b762906bf1516c30b0ed5d74c (patch)
treec492eca32b4893ce27093744ddd75b5620fd4e86 /vl.c
parent0cfec834c5d532f32d29b8dc804cb4daeb1ed64a (diff)
Kfreebsd config, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3010 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 88f4177529..4def8abfee 100644
--- a/vl.c
+++ b/vl.c
@@ -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(VLANState *vlan, int fd)
return s;
}
-#ifdef _BSD
+#if defined (_BSD) || defined (__FreeBSD_kernel__)
static int tap_open(char *ifname, int ifname_size)
{
int fd;