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 <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik 2020-09-01 14:21:41 +02:00
parent 69e3381626
commit e1178d55c6
2 changed files with 2 additions and 2 deletions

View 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

View 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>