提交 d91c8e64 编写于 作者: P Pavel Hrdina

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: NPavel Hrdina <phrdina@redhat.com>
上级 9998a657
...@@ -52,6 +52,10 @@ ...@@ -52,6 +52,10 @@
# include <net/if_dl.h> # include <net/if_dl.h>
#endif #endif
#ifndef IFNAMSIZ
# define IFNAMSIZ 16
#endif
#define VIR_FROM_THIS VIR_FROM_NONE #define VIR_FROM_THIS VIR_FROM_NONE
VIR_LOG_INIT("util.netdev"); VIR_LOG_INIT("util.netdev");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册