aboutsummaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-05-10 16:48:20 -0700
committerDavid 'Digit' Turner <digit@android.com>2010-05-10 16:49:50 -0700
commit2c538c86c15d597cc875dc926e4e39285c5625df (patch)
treefd02b6da79b5e1375ab2ec5264ab339044e4a7da /net.c
parent5e097bf40ed22b422dce1fb2c58098d6c97cf0c6 (diff)
downloadexternal_qemu-2c538c86c15d597cc875dc926e4e39285c5625df.zip
external_qemu-2c538c86c15d597cc875dc926e4e39285c5625df.tar.gz
external_qemu-2c538c86c15d597cc875dc926e4e39285c5625df.tar.bz2
Upstream: Use CONFIG_BSD instead of _BSD and HOST_BSD
Also fix OS X build, which failed with a link error. Change-Id: Idd63f25dc1f46ea66da5727c7577def34f048c3c
Diffstat (limited to 'net.c')
-rw-r--r--net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net.c b/net.c
index af9de73..8e6974b 100644
--- a/net.c
+++ b/net.c
@@ -29,7 +29,7 @@
#include <sys/time.h>
#include <zlib.h>
-/* Needed early for HOST_BSD etc. */
+/* Needed early for CONFIG_BSD etc. */
#include "config-host.h"
#ifndef _WIN32
@@ -52,7 +52,7 @@
#include <dirent.h>
#include <netdb.h>
#include <sys/select.h>
-#ifdef HOST_BSD
+#ifdef CONFIG_BSD
#include <sys/stat.h>
#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <libutil.h>
@@ -1138,7 +1138,7 @@ static TAPState *net_tap_fd_init(VLANState *vlan,
return s;
}
-#if defined (HOST_BSD) || defined (__FreeBSD_kernel__)
+#if defined (CONFIG_BSD) || defined (__FreeBSD_kernel__)
static int tap_open(char *ifname, int ifname_size)
{
int fd;