summaryrefslogtreecommitdiffstats
path: root/usb-bsd.c
authorAurelien Jarno <[email protected]>2009-11-29 17:00:41 (GMT)
committer Aurelien Jarno <[email protected]>2009-11-29 17:00:41 (GMT)
commita167ba50851cdac2fa36633587e98c5956cd6b18 (patch) (side-by-side diff)
tree867d24e0248b33efe699102dbb5353737e869c50 /usb-bsd.c
parent3098b9fde97a224e803048c83bebeea176966358 (diff)
downloadqemu-kvm-a167ba50851cdac2fa36633587e98c5956cd6b18.zip
qemu-kvm-a167ba50851cdac2fa36633587e98c5956cd6b18.tar.gz
qemu-kvm-a167ba50851cdac2fa36633587e98c5956cd6b18.tar.bz2
Add support for GNU/kFreeBSD
Signed-off-by: Aurelien Jarno <[email protected]>
Diffstat (limited to 'usb-bsd.c') (more/less context) (ignore whitespace changes)
-rw-r--r--usb-bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usb-bsd.c b/usb-bsd.c
index 6e8c526..a66364f 100644
--- a/usb-bsd.c
+++ b/usb-bsd.c
@@ -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]);