]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Check for HAVE_NET_IF_H correctly
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Sep 2020 12:21:41 +0000 (14:21 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Sep 2020 08:28:10 +0000 (10:28 +0200)
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 <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virnetdevbridge.c
src/util/virnetdevtap.c

index 8ce1a07c41e14e2595992d11db816190724820e5..ccac97e8d08574e70c50abb3666865e221655fb8 100644 (file)
@@ -27,7 +27,7 @@
 #include "virstring.h"
 #include "virsocket.h"
 
-#ifdef HAVE_NET_IF
+#ifdef HAVE_NET_IF_H
 # include <net/if.h>
 #endif
 
index 9f5e535180170bca1c543fc04921bafbe28b7c1b..f06c6e691e8fed22c9e1ff789131f732af809b49 100644 (file)
@@ -36,7 +36,7 @@
 #ifndef WIN32
 # include <sys/ioctl.h>
 #endif
-#ifdef HAVE_NET_IF
+#ifdef HAVE_NET_IF_H
 # include <net/if.h>
 #endif
 #include <fcntl.h>