svn commit: r458719 - head/security/trezord/files

Alex Dupre ale at FreeBSD.org
Thu Jan 11 11:02:03 UTC 2018


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;


More information about the svn-ports-all mailing list