diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2009-11-29 18:00:41 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-11-29 18:00:41 +0100 |
commit | a167ba50851cdac2fa36633587e98c5956cd6b18 (patch) | |
tree | 867d24e0248b33efe699102dbb5353737e869c50 /usb-bsd.c | |
parent | 3098b9fde97a224e803048c83bebeea176966358 (diff) | |
download | qemu-a167ba50851cdac2fa36633587e98c5956cd6b18.zip |
Add support for GNU/kFreeBSD
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'usb-bsd.c')
-rw-r--r-- | usb-bsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -335,7 +335,7 @@ USBDevice *usb_host_device_open(const char *devname) return NULL; } -#if defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) snprintf(ctlpath, PATH_MAX, "/dev/%s", bus_info.udi_devnames[0]); #else snprintf(ctlpath, PATH_MAX, "/dev/%s.00", bus_info.udi_devnames[0]); @@ -437,7 +437,7 @@ static int usb_host_scan(void *opaque, USBScanFunc *func) if (strncmp(bus_info.udi_devnames[0], "ugen", 4) != 0) continue; -#if defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) snprintf(devbuf, sizeof(devbuf) - 1, "/dev/%s", bus_info.udi_devnames[0]); #else snprintf(devbuf, sizeof(devbuf) - 1, "/dev/%s.00", bus_info.udi_devnames[0]); |