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 3513075..efccfe0 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;