diff options
author | lha <lha> | 2004-06-10 10:20:28 +0000 |
---|---|---|
committer | lha <lha> | 2004-06-10 10:20:28 +0000 |
commit | aee025bad35aab2fadd40b24eb1f4029b354d7ff (patch) | |
tree | 58b8cb5458062efc5976167e75be8c7f97701537 /net/howl | |
parent | 12bbaeb88ac75d3d2a963d4c7e08ac567e1ea567 (diff) | |
download | pkgsrc-aee025bad35aab2fadd40b24eb1f4029b354d7ff.tar.gz |
NetBSD needs SO_REUSEPORT, should use "int" not "long" otherwise it
wont work on big-endian LP64 machines.
Diffstat (limited to 'net/howl')
-rw-r--r-- | net/howl/distinfo | 3 | ||||
-rw-r--r-- | net/howl/patches/patch-ad | 25 |
2 files changed, 27 insertions, 1 deletions
diff --git a/net/howl/distinfo b/net/howl/distinfo index 3f8c0359a45..461743b6350 100644 --- a/net/howl/distinfo +++ b/net/howl/distinfo @@ -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 --git a/net/howl/patches/patch-ad b/net/howl/patches/patch-ad new file mode 100644 index 00000000000..2bb381ba355 --- /dev/null +++ b/net/howl/patches/patch-ad @@ -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) |