From: Michal Privoznik Date: Tue, 1 Sep 2020 12:21:41 +0000 (+0200) Subject: util: Check for HAVE_NET_IF_H correctly X-Git-Tag: v6.8.0-rc1~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1178d55c6eba6ec05e08f2557e2bad01a56cd41;p=thirdparty%2Flibvirt.git util: Check for HAVE_NET_IF_H correctly There are two places where we try to check whether the host system has net/if.h before including it. But the check is missing '_H' suffix. Fixes: 7f3eb533f44742071366e07a35ab41070956707b Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c index 8ce1a07c41..ccac97e8d0 100644 --- a/src/util/virnetdevbridge.c +++ b/src/util/virnetdevbridge.c @@ -27,7 +27,7 @@ #include "virstring.h" #include "virsocket.h" -#ifdef HAVE_NET_IF +#ifdef HAVE_NET_IF_H # include #endif diff --git a/src/util/virnetdevtap.c b/src/util/virnetdevtap.c index 9f5e535180..f06c6e691e 100644 --- a/src/util/virnetdevtap.c +++ b/src/util/virnetdevtap.c @@ -36,7 +36,7 @@ #ifndef WIN32 # include #endif -#ifdef HAVE_NET_IF +#ifdef HAVE_NET_IF_H # include #endif #include