Fix build on mingw

Last commit unconditionally included a linux-specific header.

Do not do that.
This commit is contained in:
Ján Tomko 2015-03-05 12:04:11 +01:00
parent c9027d8f44
commit 41c5baeafb
2 changed files with 4 additions and 1 deletions

View File

@ -47,6 +47,10 @@
# undef HAVE_STRUCT_IFREQ
#endif
#if defined(SIOCETHTOOL) && defined(HAVE_STRUCT_IFREQ)
# include <linux/ethtool.h>
#endif
#if HAVE_DECL_LINK_ADDR
# include <sys/sockio.h>
# include <net/if_dl.h>

View File

@ -32,7 +32,6 @@
# include "virpci.h"
# include "device_conf.h"
# include <linux/ethtool.h>
# ifdef HAVE_STRUCT_IFREQ
typedef struct ifreq virIfreq;
# else