summaryrefslogtreecommitdiff
path: root/comms/bthfp
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-21 20:47:28 +0000
committerjoerg <joerg>2008-06-21 20:47:28 +0000
commit712dc26382675ccaa56b4b6b407cc71c8b88fc84 (patch)
tree43d7316ea556f58312fefa0a8d655060efae8131 /comms/bthfp
parentb32b14fc1c95bd6c5222e5ee7221013ca5b6e98c (diff)
downloadpkgsrc-712dc26382675ccaa56b4b6b407cc71c8b88fc84.tar.gz
Fix build on LP64.
Diffstat (limited to 'comms/bthfp')
-rw-r--r--comms/bthfp/Makefile4
-rw-r--r--comms/bthfp/distinfo3
-rw-r--r--comms/bthfp/patches/patch-aa15
3 files changed, 20 insertions, 2 deletions
diff --git a/comms/bthfp/Makefile b/comms/bthfp/Makefile
index 7881bff7045..7f4d1728dc4 100644
--- a/comms/bthfp/Makefile
+++ b/comms/bthfp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2008/03/03 05:33:32 jlam Exp $
+# $NetBSD: Makefile,v 1.3 2008/06/21 20:47:28 joerg Exp $
DISTNAME= bthfp-0.1
CATEGORIES= comms
@@ -14,6 +14,8 @@ PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+USE_BSD_MAKEFILE= yes
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bthfp ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/bthfp.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
diff --git a/comms/bthfp/distinfo b/comms/bthfp/distinfo
index d554ee35a73..fa36d86133f 100644
--- a/comms/bthfp/distinfo
+++ b/comms/bthfp/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/12/07 20:29:10 plunky Exp $
+$NetBSD: distinfo,v 1.2 2008/06/21 20:47:28 joerg Exp $
SHA1 (bthfp-0.1.tar.gz) = f0cefa424596545dec3c7d61eb9e608e8178871b
RMD160 (bthfp-0.1.tar.gz) = 5185c59ee67a7482ec8c424172fdeebed5bb3238
Size (bthfp-0.1.tar.gz) = 8522 bytes
+SHA1 (patch-aa) = 66e1d2be8a9de92b7a47bea8bba0adb68510d740
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;