mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
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:
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…
x
Reference in New Issue
Block a user