Fix communication with UPS for NUT (Network UPS Tools).
PR: 126922 Submitted by: maintainer
This commit is contained in:
parent
13a94294db
commit
ac6ee06f68
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221555
2 changed files with 10 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= libusb
|
||||
PORTVERSION= 0.1.12
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
--- bsd.c.orig Sun Jul 30 11:18:07 2006
|
||||
+++ bsd.c Sun Jul 30 11:20:30 2006
|
||||
@@ -408,7 +408,7 @@
|
||||
/* Ensure the endpoint address is correct */
|
||||
ep |= USB_ENDPOINT_IN;
|
||||
|
||||
- fd = ensure_ep_open(dev, ep, O_RDONLY);
|
||||
+ fd = ensure_ep_open(dev, ep, O_RDONLY | O_NONBLOCK);
|
||||
if (fd < 0) {
|
||||
if (usb_debug >= 2) {
|
||||
#ifdef __FreeBSD_kernel__
|
||||
@@ -623,9 +623,21 @@
|
||||
|
||||
int usb_clear_halt(usb_dev_handle *dev, unsigned int ep)
|
||||
|
|
Loading…
Reference in a new issue