From 24646c7ed8a94a2b39e03121f0079bb89e708ec7 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Fri, 7 Nov 2008 16:55:48 +0000 Subject: [PATCH] Fix some build issues for BSD. Signed-off-by: Christoph Egger git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5646 c046a42c-6fe2-441c-8c8c-71466251a162 --- net.c | 19 ++++++++++++------- qemu-char.c | 18 ++++++++++++------ vl.c | 19 ++++++++++++------- 3 files changed, 36 insertions(+), 20 deletions(-) diff --git a/net.c b/net.c index ecd4c1d310..35aeb1ece2 100644 --- a/net.c +++ b/net.c @@ -54,26 +54,31 @@ #include #include #include +#include #include #include +#include +#ifdef __NetBSD__ +#include +#endif +#ifdef __linux__ +#include +#endif +#include #include #include #include -#include #ifdef _BSD #include -#if !defined(__APPLE__) && !defined(__OpenBSD__) +#ifdef __FreeBSD__ #include -#endif -#ifdef __OpenBSD__ -#include +#else +#include #endif #elif defined (__GLIBC__) && defined (__FreeBSD_kernel__) #include #else #ifdef __linux__ -#include -#include #include #include #include diff --git a/qemu-char.c b/qemu-char.c index ceffbed655..fa60819d66 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -45,25 +45,31 @@ #include #include #include +#include #include #include +#include +#ifdef __NetBSD__ +#include +#endif +#ifdef __linux__ +#include +#endif +#include #include #include #include -#include #ifdef _BSD #include -#if !defined(__APPLE__) && !defined(__OpenBSD__) +#ifdef __FreeBSD__ #include -#endif -#ifdef __OpenBSD__ -#include +#else +#include #endif #elif defined (__GLIBC__) && defined (__FreeBSD_kernel__) #include #else #ifdef __linux__ -#include #include #include diff --git a/vl.c b/vl.c index 31dd3d7241..04485fe65f 100644 --- a/vl.c +++ b/vl.c @@ -55,26 +55,31 @@ #include #include #include +#include #include #include +#include +#if defined(__NetBSD__) +#include +#endif +#ifdef __linux__ +#include +#endif +#include #include #include #include -#include #ifdef _BSD #include -#if !defined(__APPLE__) && !defined(__OpenBSD__) +#ifdef __FreeBSD__ #include -#endif -#ifdef __OpenBSD__ -#include +#else +#include #endif #elif defined (__GLIBC__) && defined (__FreeBSD_kernel__) #include #else #ifdef __linux__ -#include -#include #include #include #include