]> xenbits.xensource.com Git - libvirt.git/commitdiff
mingw: fix build failure
authorPavel Hrdina <phrdina@redhat.com>
Fri, 31 Oct 2014 18:00:19 +0000 (19:00 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Sat, 1 Nov 2014 00:35:40 +0000 (01:35 +0100)
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>
src/util/virnetdev.c

index 6da3371d550fbf91becc3b43b017d67bc55ab9b4..3831009d87295def2c7cf1fa08cd6541b611afb5 100644 (file)
 # include <net/if_dl.h>
 #endif
 
+#ifndef IFNAMSIZ
+# define IFNAMSIZ 16
+#endif
+
 #define VIR_FROM_THIS VIR_FROM_NONE
 
 VIR_LOG_INIT("util.netdev");