tap: Remove double include of util.h
PATCH 1/1 tap: Remove double include of util.h
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 <[email protected]>
Signed-off-by Andreas Färber <[email protected]>
--- net/tap-bsd.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
net/tap-bsd.c +0 -4
@@ -37,10 +37,6 @@#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;
Signature · 1 line
1.7.3
Blue Swirl
AppliedThanks, applied.
Quoted 29 lines · Andreas Färber
If neither of
__FreeBSD__,__FreeBSD_kernel__and__DragonFly__is defined,util.his included fromtap-bsd.c.
Don't include it again if__OpenBSD__is defined.Cc Blue Swirl <[email protected]>Signed-off-by Andreas Färber <[email protected]>---
net/tap-bsd.c | 4 ----1 files changed, 0 insertions(+), 4 deletions(-)net/tap-bsd.c +0
-5@@ -37,10 +37,6 @@ #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; --1.7.3