pkgsrc/multimedia/kodi/patches/patch-xbmc_peripherals_bus_linux_PeripheralBusUSBLibUSB.cpp
jmcneill a01db9f9be Initial import of kodi-15.2
Kodi (formerly known as XBMC) is an award-winning free and open source (GPL)
software media center for playing videos, music, pictures, games, and more.
Kodi features a 10-foot user interface for use with televisions and remote
controls. It allows users to play and view most videos, music, podcasts, and
other digital media files from local and network storage media and the
internet.
2015-11-17 14:56:07 +00:00

13 lines
873 B
C++

$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);