diff options
-rw-r--r-- | comms/pilot-link-libs/Makefile | 4 | ||||
-rw-r--r-- | comms/pilot-link/distinfo | 3 | ||||
-rw-r--r-- | comms/pilot-link/patches/patch-ad | 34 |
3 files changed, 38 insertions, 3 deletions
diff --git a/comms/pilot-link-libs/Makefile b/comms/pilot-link-libs/Makefile index a16d86582fb..51b7a74caa5 100644 --- a/comms/pilot-link-libs/Makefile +++ b/comms/pilot-link-libs/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.1.1.1 2001/06/27 18:06:05 jlam Exp $ +# $NetBSD: Makefile,v 1.2 2001/08/09 08:49:48 dillo Exp $ # .include "../../comms/pilot-link/Makefile.common" -PKGNAME= pilot-link-libs-${PILOT_LINK_VERS} +PKGNAME= pilot-link-libs-${PILOT_LINK_VERS}nb1 COMMENT= Libraries for talking to the 3Com Pilot PDA CONFLICTS+= pilot-link-0.8.* pilot-link-0.9.[0-3] diff --git a/comms/pilot-link/distinfo b/comms/pilot-link/distinfo index d79b85da6e3..b075f302e40 100644 --- a/comms/pilot-link/distinfo +++ b/comms/pilot-link/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.4 2001/06/27 18:04:39 jlam Exp $ +$NetBSD: distinfo,v 1.5 2001/08/09 08:49:46 dillo Exp $ SHA1 (pilot-link.0.9.5.tar.bz2) = cb026637bebad22a273b38edfd8633853d13e065 Size (pilot-link.0.9.5.tar.bz2) = 424794 bytes SHA1 (patch-aa) = d2cb12eac0e85c2b039781eaed14b5ef75ff0c34 SHA1 (patch-ab) = 098d934009c87949a4d6f3dbaed78c9803df1029 SHA1 (patch-ac) = 5d37048f9524e8d96b387c4ee22b4f91d4d4b6d7 +SHA1 (patch-ad) = 4b2673db8f1ed28ab8e29a5d43dcecd44f0ec7d6 diff --git a/comms/pilot-link/patches/patch-ad b/comms/pilot-link/patches/patch-ad new file mode 100644 index 00000000000..6516ba43e8e --- /dev/null +++ b/comms/pilot-link/patches/patch-ad @@ -0,0 +1,34 @@ +$NetBSD: patch-ad,v 1.1 2001/08/09 08:49:47 dillo Exp $ + +--- libsock/unixserial.c.orig Mon Aug 6 11:39:00 2001 ++++ libsock/unixserial.c Mon Aug 6 11:42:01 2001 +@@ -156,6 +156,13 @@ + + int i; + ++ /* Here we need a workaround for NetBSD USB device used with newer ++ Handspring devices (namely Platinum, Prism and Edge) */ ++ ++#define maxretries 100 ++ int retries; ++ int rc; ++ + #ifndef SGTTY + struct termios tcn; + #else +@@ -166,6 +173,15 @@ + tty = getenv("PILOTPORT"); + if (!tty) + tty = "<Null>"; ++ ++ for (retries = 0 ; retries <= maxretries ; retries++ ) { ++ if ((rc = open(tty, O_RDWR | O_NONBLOCK)) == -1) { ++ usleep(50000); ++ } else { ++ ps->mac->fd = rc; ++ break; ++ } ++ } + + if ((ps->mac->fd = open(tty, O_RDWR | O_NONBLOCK)) == -1) { + return -1; /* errno already set */ |