Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2018 11:02:02 +0000 (UTC)
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458719 - head/security/trezord/files
Message-ID:  <201801111102.w0BB22pV068704@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ale
Date: Thu Jan 11 11:02:01 2018
New Revision: 458719
URL: https://svnweb.freebsd.org/changeset/ports/458719

Log:
  Fix build on FreeBSD 10.

Modified:
  head/security/trezord/files/usb.hpp

Modified: head/security/trezord/files/usb.hpp
==============================================================================
--- head/security/trezord/files/usb.hpp	Thu Jan 11 09:13:58 2018	(r458718)
+++ head/security/trezord/files/usb.hpp	Thu Jan 11 11:02:01 2018	(r458719)
@@ -123,7 +123,9 @@ open_path(char const *path)
                             libusb_get_device_address(dev));
                     if (strncmp(devpath, path, sizeof(devpath)) == 0) {
                             if (libusb_open(dev, &handle) == 0) {
+#if !defined(__FreeBSD__) || __FreeBSD_version >= 1100000
                                     libusb_set_auto_detach_kernel_driver(handle, 1);
+#endif
                                     if (libusb_claim_interface(handle, 0)) {
                                             libusb_close(handle);
                                             handle = NULL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801111102.w0BB22pV068704>