pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/howl NetBSD needs SO_REUSEPORT, should use "int" n...
details: https://anonhg.NetBSD.org/pkgsrc/rev/79e225112a3f
branches: trunk
changeset: 476421:79e225112a3f
user: lha <lha%pkgsrc.org@localhost>
date: Thu Jun 10 10:20:28 2004 +0000
description:
NetBSD needs SO_REUSEPORT, should use "int" not "long" otherwise it
wont work on big-endian LP64 machines.
diffstat:
net/howl/distinfo | 3 ++-
net/howl/patches/patch-ad | 25 +++++++++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletions(-)
diffs (42 lines):
diff -r 942a1ae931d4 -r 79e225112a3f net/howl/distinfo
--- a/net/howl/distinfo Thu Jun 10 10:18:09 2004 +0000
+++ b/net/howl/distinfo Thu Jun 10 10:20:28 2004 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/06/05 19:03:12 nathanw Exp $
+$NetBSD: distinfo,v 1.2 2004/06/10 10:20:28 lha Exp $
SHA1 (howl-0.9.5.tar.gz) = b8d77c4f7643cbf06c61ccd9de0abb8787489d03
Size (howl-0.9.5.tar.gz) = 552178 bytes
SHA1 (patch-aa) = 05333a1cc99f2cb0b3fc7f15debca0d7805837fb
SHA1 (patch-ab) = 59e6d15b8b9e1e8bb6b45a8dc7f656b0a790a5d9
SHA1 (patch-ac) = 325138c5d2b4e48ef7a1a80afd1adc864825fb50
+SHA1 (patch-ad) = 9c3992b4254cdee83ec298aa356eeea398f6aaed
diff -r 942a1ae931d4 -r 79e225112a3f net/howl/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/howl/patches/patch-ad Thu Jun 10 10:20:28 2004 +0000
@@ -0,0 +1,25 @@
+ $NetBSD: patch-ad,v 1.1 2004/06/10 10:20:28 lha Exp $
+
+NetBSD needs SO_REUSEPORT not SO_REUSEADDR, should use "int" not
+"long" otherwise it wont work on big-endian machines.
+
+--- src/lib/howl/socket.c 2004-06-09 20:10:51.000000000 +0200
++++ src/lib/howl/socket.c.new 2004-06-09 20:10:59.000000000 +0200
+@@ -242,7 +242,7 @@
+ sw_multicast_socket_super_init(
+ sw_socket self)
+ {
+- sw_ulong opt = 1;
++ int opt = 1;
+
+ SW_TRY(sw_socket_init(self, SW_FALSE, &sw_socket_udp_connect, &sw_socket_udp_send, &sw_socket_udp_sendto, &sw_socket_udp_recv, &sw_socket_udp_recvfrom, &sw_socket_udp_close));
+
+@@ -252,7 +252,7 @@
+ return SW_E_FAIL;
+ }
+
+-#if defined(__APPLE__) || defined(__VXWORKS__)
++#if defined(__APPLE__) || defined(__VXWORKS__) || defined(__NetBSD__)
+ if (setsockopt(self->m_fd, SOL_SOCKET, SO_REUSEPORT, (char*) &opt, sizeof(opt)) == -1)
+ #else
+ if (setsockopt(self->m_fd, SOL_SOCKET, SO_REUSEADDR, (char*) &opt, sizeof(opt)) == -1)
Home |
Main Index |
Thread Index |
Old Index