ports/palm/coldsync/files/patch-palm
Mikhail Teterin d7acd0ef07 Patch to use the new names of some of the usb.h's structures' fields if
the OSVERSION is above 450000. Add a maintainer submitted patch to
recognize the Palm's vendor-id (not just Handspring). Update pkg-descr
accordingly and bump PORTREVISION.

Approved by:	maintainer
2002-04-09 02:00:19 +00:00

27 lines
841 B
Text

Index: libpconn/PConnection_usb.c
===================================================================
RCS file: /var/lib/cvs/coldsync/libpconn/PConnection_usb.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- libpconn/PConnection_usb.c 30 Jul 2001 07:23:56 -0000 1.26
+++ libpconn/PConnection_usb.c 20 Aug 2001 09:13:00 -0000 1.27
@@ -94,6 +94,7 @@
#define hs_usbfun_MAX 4
#define HANDSPRING_VENDOR_ID 0x082d
+#define PALM_VENDOR_ID 0x0830
static char *hs_usb_functions[] = {
"Generic",
@@ -505,7 +506,9 @@
}
- if (udi.vendorNo != HANDSPRING_VENDOR_ID) {
+ if ((udi.vendorNo != HANDSPRING_VENDOR_ID) &&
+ (udi.vendorNo != PALM_VENDOR_ID))
+ {
fprintf(stderr,
_("%s: Warning: Unexpected USB vendor ID %#x.\n"),
"pconn_usb_open", udi.vendorNo);