usb: fix usb-host build on windows.
commit631009e775a91018a62e2670b4473e99916f858f
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 24 Jun 2020 13:45:10 +0000 (24 15:45 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 13 Jul 2020 09:46:51 +0000 (13 11:46 +0200)
tree37c630e4528b0281b1562d04060e60ec0bcfa88b
parent185951817dede3dfe4eb1c4c6d262607bee605ef
usb: fix usb-host build on windows.

Seems the new API is not available on windows.
Update #ifdefs accordingly.

Fixes: 9f815e83e983 ("usb: add hostdevice property to usb-host")
Reported-by: Howard Spoelstra <hsp.cat7@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Howard Spoelstra <hsp.cat7@gmail.com>
Message-id: 20200624134510.9381-1-kraxel@redhat.com
hw/usb/host-libusb.c