diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2009-11-29 18:00:41 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-11-29 18:00:41 +0100 |
commit | a167ba50851cdac2fa36633587e98c5956cd6b18 (patch) | |
tree | 867d24e0248b33efe699102dbb5353737e869c50 /net | |
parent | 3098b9fde97a224e803048c83bebeea176966358 (diff) | |
download | qemu-a167ba50851cdac2fa36633587e98c5956cd6b18.tar.gz qemu-a167ba50851cdac2fa36633587e98c5956cd6b18.tar.bz2 qemu-a167ba50851cdac2fa36633587e98c5956cd6b18.zip |
Add support for GNU/kFreeBSD
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/tap-bsd.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/tap-bsd.c b/net/tap-bsd.c index 0f8ad4ad71..815997dc7b 100644 --- a/net/tap-bsd.c +++ b/net/tap-bsd.c @@ -30,14 +30,11 @@ #include <net/if_tap.h> #endif -#if defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) #include <libutil.h> #else #include <util.h> #endif -#if defined (__GLIBC__) && defined (__FreeBSD_kernel__) -#include <freebsd/stdlib.h> -#endif #if defined(__OpenBSD__) #include <util.h> @@ -49,7 +46,7 @@ int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required char *dev; struct stat s; -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) /* if no ifname is given, always start the search from tap0. */ int i; char dname[100]; |