mirror of https://gitee.com/openkylin/libvirt.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: 7f3eb533f4
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
69e3381626
commit
e1178d55c6
|
@ -27,7 +27,7 @@
|
|||
#include "virstring.h"
|
||||
#include "virsocket.h"
|
||||
|
||||
#ifdef HAVE_NET_IF
|
||||
#ifdef HAVE_NET_IF_H
|
||||
# include <net/if.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue