summaryrefslogtreecommitdiff
path: root/comms/bthfp/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-21 20:47:28 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-21 20:47:28 +0000
commitb35c86d3bd44ca30a5aff7e66115a37038b2ae05 (patch)
tree43d7316ea556f58312fefa0a8d655060efae8131 /comms/bthfp/patches
parent8c794abd07c22342a1b79fc1acdf5877a8e1f116 (diff)
downloadpkgsrc-b35c86d3bd44ca30a5aff7e66115a37038b2ae05.tar.gz
Fix build on LP64.
Diffstat (limited to 'comms/bthfp/patches')
-rw-r--r--comms/bthfp/patches/patch-aa15
1 files changed, 15 insertions, 0 deletions
diff --git a/comms/bthfp/patches/patch-aa b/comms/bthfp/patches/patch-aa
new file mode 100644
index 00000000000..0db77888d52
--- /dev/null
+++ b/comms/bthfp/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1 2008/06/21 20:47:28 joerg Exp $
+
+--- bthfp.c.orig 2008-06-21 14:42:12.000000000 +0000
++++ bthfp.c
+@@ -480,8 +480,8 @@ accept_sco(int fd, short ev, void *arg)
+
+ /* XXX might need to up the socket buffer size? */
+
+- size = sizeof(mtu);
+- if (getsockopt(sc, BTPROTO_SCO, SO_SCO_MTU, &mtu, &size) < 0) {
++ len = sizeof(mtu);
++ if (getsockopt(sc, BTPROTO_SCO, SO_SCO_MTU, &mtu, &len) < 0) {
+ close(sc);
+ sc = -1;
+ return;