summaryrefslogtreecommitdiff
path: root/multimedia/kodi/patches/patch-xbmc_peripherals_bus_linux_PeripheralBusUSBLibUSB.cpp
blob: a8c8f867822c8fb4f39d42e2a4a6eb717d6d69a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-xbmc_peripherals_bus_linux_PeripheralBusUSBLibUSB.cpp,v 1.1 2015/11/17 14:56:07 jmcneill Exp $

--- xbmc/peripherals/bus/linux/PeripheralBusUSBLibUSB.cpp.orig	2015-10-19 06:31:15.000000000 +0000
+++ xbmc/peripherals/bus/linux/PeripheralBusUSBLibUSB.cpp
@@ -51,7 +51,7 @@ bool CPeripheralBusUSB::PerformDeviceSca
                              dev->config[0].bNumInterfaces > 0 && dev->config[0].interface[0].num_altsetting > 0) ?
                                  GetType(dev->config[0].interface[0].altsetting[0].bInterfaceClass) :
                                  GetType(dev->descriptor.bDeviceClass);
-#ifdef TARGET_FREEBSD
+#if defined(TARGET_FREEBSD) || defined(TARGET_NETBSD)
       result.m_strLocation = StringUtils::Format("%s", dev->filename);
 #else
       result.m_strLocation = StringUtils::Format("/bus%s/dev%s", bus->dirname, dev->filename);