sim-card
/
qemu
Archived
10
0
Fork 0

Linux compilation fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2065 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2006-07-19 17:54:57 +00:00
parent 74ccb34e6b
commit 3b2ccc57c7
1 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#if defined(__linux__)
#include <dirent.h>
#include <sys/ioctl.h>
#include <linux/compiler.h>
#include <linux/usbdevice_fs.h>
#include <linux/version.h>
@ -59,6 +60,14 @@ typedef struct USBHostDevice {
static void usb_host_handle_reset(USBDevice *dev, int destroy)
{
USBHostDevice *s = (USBHostDevice *)dev;
if (destroy) {
if (s->fd >= 0)
close(s->fd);
qemu_free(s);
return;
}
#if 0
USBHostDevice *s = (USBHostDevice *)dev;
/* USBDEVFS_RESET, but not the first time as it has already be