[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/4] rocker: Add support for phys name
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 1/4] rocker: Add support for phys name |
Date: |
Tue, 19 May 2015 14:37:40 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, May 13, 2015 at 11:06:51PM -0700, address@hidden wrote:
> diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c
> index 55b6c46..f62fb95 100644
> --- a/hw/net/rocker/rocker.c
> +++ b/hw/net/rocker/rocker.c
> @@ -15,6 +15,7 @@
> * GNU General Public License for more details.
> */
>
> +#include <net/if.h>
This breaks Windows builds:
hw/net/rocker/rocker.c:18:20: fatal error: net/if.h: No such file or directory
#include <net/if.h>
^
On Fedora, check out the mingw64- packages if you a cross toolchain. On
other distros you can use http://mxe.cc/ to get a cross toolchain.
<net/if.h> is POSIX but Windows doesn't seem to have it:
http://pubs.opengroup.org/onlinepubs/009696699/basedefs/net/if.h.html
Note that IF_NAMESIZE is POSIX and might be more widely available than
IFNAMSIZ (BSD).
Stefan
pgpZE1MyJGmMJ.pgp
Description: PGP signature