diff --git a/net/tap-bsd.c b/net/tap-bsd.c index 4b6b3a41a095de3e035ef85a9c5a911d4af6df6b..937a94b11f41e9f2f182bb41f80a7b11127b73ed 100644 --- a/net/tap-bsd.c +++ b/net/tap-bsd.c @@ -33,12 +33,6 @@ #include #endif -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) -#include -#else -#include -#endif - int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required) { int fd; diff --git a/qemu-char.c b/qemu-char.c index 0bd903f58c0e27616c6ad5562925e6b942070f3b..c2aaaeeb8f6dfb3a38fc868b29c6eada015d7a3a 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -56,19 +56,19 @@ #include #ifdef CONFIG_BSD #include -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -#include -#include -#include #if defined(__GLIBC__) #include +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) +#include +#else +#include #endif +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#include +#include #elif defined(__DragonFly__) -#include #include #include -#else -#include #endif #else #ifdef __linux__ diff --git a/vl.c b/vl.c index 148542617dab9203f71db0cb2349e8a4ca91bb7d..204d85bcf6c8dc89cf9d4eef8d26789f149fab08 100644 --- a/vl.c +++ b/vl.c @@ -51,14 +51,12 @@ #ifdef CONFIG_BSD #include #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) -#include #include #else #include #endif #else #ifdef __linux__ -#include #include #include @@ -81,10 +79,6 @@ #endif #endif -#if defined(__OpenBSD__) -#include -#endif - #if defined(CONFIG_VDE) #include #endif