usb: Fix compilation for Windows
commit498a781cbda9dc28a28feafcfd730cfaff669301
authorStefan Weil <sw@weilnetz.de>
Wed, 16 Mar 2016 20:10:51 +0000 (16 21:10 +0100)
committerStefan Weil <sw@weilnetz.de>
Wed, 16 Mar 2016 20:32:48 +0000 (16 21:32 +0100)
tree798fc0f2f3abe6cd90968efb28b2f72c37c02e97
parent7f72921d8cddba6d187bd3a068e83c8924687576
usb: Fix compilation for Windows

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 <sw@weilnetz.de>
hw/usb/redirect.c