Re: [Qemu-devel] [PATCH] usb: Fix compilation for Windows

2016-03-20 Thread Gerd Hoffmann
On Mi, 2016-03-16 at 21:17 +0100, Stefan Weil wrote: > Mingw-w64 does not provide sys/ioctl.h and Linux builds don't need it, > so remove that include statement. > > ERROR is defined by wingdi.h (included via windows.h). Undefine it before > it is redefined to avoid a compiler warning / error. >

[Qemu-devel] [PATCH] usb: Fix compilation for Windows

2016-03-19 Thread Stefan Weil
Mingw-w64 does not provide sys/ioctl.h and Linux builds don't need it, so remove that include statement. ERROR is defined by wingdi.h (included via windows.h). Undefine it before it is redefined to avoid a compiler warning / error. Signed-off-by: Stefan Weil --- Cygwin now includes Mingw-w64 pa