mirror of https://gitee.com/openkylin/libvirt.git
mingw: fix build failure
This macro seems to be defined only on linux/unix and it fails during mingw build. Its value is '16' (taken from net/if.h) so define it if it's not defined. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
9998a657fd
commit
d91c8e640b
|
@ -52,6 +52,10 @@
|
|||
# include <net/if_dl.h>
|
||||
#endif
|
||||
|
||||
#ifndef IFNAMSIZ
|
||||
# define IFNAMSIZ 16
|
||||
#endif
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
VIR_LOG_INIT("util.netdev");
|
||||
|
|
Loading…
Reference in New Issue