]> git.proxmox.com Git - qemu.git/commitdiff
tap: Remove double include of util.h
authorAndreas Färber <andreas.faerber@web.de>
Tue, 28 Sep 2010 21:48:42 +0000 (23:48 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 29 Sep 2010 16:15:37 +0000 (16:15 +0000)
If neither of __FreeBSD__, __FreeBSD_kernel__ and __DragonFly__ is defined,
util.h is included from tap-bsd.c.
Don't include it again if __OpenBSD__ is defined.

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
net/tap-bsd.c

index 3513075337f98cbb15427499630ff9d7a7e727f4..efccfe08a776e9b3b8a0efbda1fa9dc4776685fa 100644 (file)
 #include <util.h>
 #endif
 
-#if defined(__OpenBSD__)
-#include <util.h>
-#endif
-
 int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required)
 {
     int fd;