Date: Tue, 26 Apr 2005 23:14:48 -0400 From: Corey Smith <corsmith@gmail.com> To: gnome@FreeBSD.org Subject: Patch to gnomepilot2 for USB support under FreeBSD 5.x Message-ID: <8061fbee05042620144e6271dd@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
------=_Part_2371_10762063.1114571688860 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Attached is a patch to add FreeBSD 5.x USB support to gpilotd (/usr/ports/palm/gnomepilot2). I've been using it for about a week without any issue. It is nice to be able to sync my Treo 650 to evolution ;) The last entry is a little funny but I figured I'd let the professionals clean it up. Thanks for your time -Corey Smith ------=_Part_2371_10762063.1114571688860 Content-Type: application/octet-stream; name="patch-ab" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-ab" LS0tIGdwaWxvdGQvZ3BpbG90ZC5jLm9yaWcJVGh1IFNlcCAgMiAxMTo0Mzo0NyAyMDA0CisrKyBn cGlsb3RkL2dwaWxvdGQuYwlTdW4gQXByIDI0IDE1OjU2OjE0IDIwMDUKQEAgLTI3LDYgKzI3LDgg QEAKICNpbmNsdWRlICJjb25maWcuaCIKICNlbmRpZgogCisjZGVmaW5lIGZyZWVic2QKKwogLyog Zm9yIGNyeXB0ICgpICovCiAjaWZkZWYgVVNFX1hPUEVOX1NPVVJDRQogI2lmbmRlZiBfWE9QRU5f U09VUkNFCkBAIC05MDMsNyArOTA1LDcgQEAKIAl9CiAJCiAJZmNsb3NlIChmKTsKLQkKKwogCWlm ICh2aXNvcl9leGlzdHMpIHsKIAkJbCA9IGNvbnRleHQtPmRldmljZXM7CiAJCXdoaWxlIChsKSB7 CkBAIC05MjgsNiArOTMwLDQ5IEBACiB9CiAKICNlbmRpZgorI2lmZGVmIGZyZWVic2QKK3N0YXRp YyBnYm9vbGVhbgordmlzb3JfZGV2aWNlc190aW1lb3V0IChncG9pbnRlciBkYXRhKQoreworCUdQ aWxvdENvbnRleHQgKmNvbnRleHQgPSBkYXRh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xMiBA QAogI2VuZGlmIC8qIFdJVEhfTkVUV09SSyAqLwogCX0gaWYgKGRldi0+dHlwZSA9PSBQSUxPVF9E RVZJQ0VfVVNCX1ZJU09SKSB7CiAjaWZkZWYgV0lUSF9VU0JfVklTT1IKLSNpZmRlZiBsaW51eAog CQkvKiBXZSB3YW50IHRvIHdhdGNoIHRoZSAvcHJvYy9idXMvdXNiL2RldmljZXMgZmlsZSBvbmNl IAogCQkgKiBwZXIgY29udGV4dCwgYW5kIHRoZW4gY2hlY2sgYWxsIGRldmljZXMgZWFjaCB0aW1l IGl0IGlzCiAJCSAqIHdva2VuIHVwLiAqLwogCQlpZiAodmlzb3JfdGltZW91dF9pZCA9PSAtMSkg ewogCQkJdmlzb3JfdGltZW91dF9pZCA9IGdfdGltZW91dF9hZGQgKDIwMDAsIHZpc29yX2Rldmlj ZXNfdGltZW91dCwgY29udGV4dCk7CiAJCX0KLSNlbHNlIC8qIGxpbnV4Ki8KLQkJZ19hc3NlcnRf bm90X3JlYWNoZWQgKCk7Ci0jZW5kaWYgLyogbGludXggKi8KICNlbmRpZiAvKiBXSVRIX1VTQl9W SVNPUiAqLwogCQlkZXYtPmRldmljZV9leGlzdHMgPSBGQUxTRTsKIAl9Cg== ------=_Part_2371_10762063.1114571688860--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8061fbee05042620144e6271dd>