usb: Fix compilation for Windows
commit0ab6d12ffde7e9235a1b9d79437f5bdda5d80cf1
authorStefan Weil <sw@weilnetz.de>
Wed, 16 Mar 2016 20:17:19 +0000 (16 21:17 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Mar 2016 12:13:30 +0000 (18 13:13 +0100)
treef613cd01bbcf8d035ed6b2e860e5afafd894d4e0
parent6741d38ad0f2405a6e999ebc9550801b01aca479
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>
Message-id: 1458159439-32322-1-git-send-email-sw@weilnetz.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/redirect.c