From owner-svn-ports-all@freebsd.org Thu Jan 11 11:02:03 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DF5AE7E01D; Thu, 11 Jan 2018 11:02:03 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE8C069DCB; Thu, 11 Jan 2018 11:02:02 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4350113FB8; Thu, 11 Jan 2018 11:02:02 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0BB22LB068705; Thu, 11 Jan 2018 11:02:02 GMT (envelope-from ale@FreeBSD.org) Received: (from ale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0BB22pV068704; Thu, 11 Jan 2018 11:02:02 GMT (envelope-from ale@FreeBSD.org) Message-Id: <201801111102.w0BB22pV068704@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ale set sender to ale@FreeBSD.org using -f From: Alex Dupre Date: Thu, 11 Jan 2018 11:02:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458719 - head/security/trezord/files X-SVN-Group: ports-head X-SVN-Commit-Author: ale X-SVN-Commit-Paths: head/security/trezord/files X-SVN-Commit-Revision: 458719 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 11:02:03 -0000 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;