summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2006-08-28 15:07:48 +0000
committerdrochner <drochner@pkgsrc.org>2006-08-28 15:07:48 +0000
commitcaebeff6d5b1be424434d5e5a2ebc6320e609ce8 (patch)
treea521c02762f3723b36d5561a396d32257ac894a5 /net
parent5d95ee1a896a060378192de027682c43d1e91adc (diff)
downloadpkgsrc-caebeff6d5b1be424434d5e5a2ebc6320e609ce8.tar.gz
Linux doesn't know SO_REUSEPORT, noticed by Min Sik Kim
Diffstat (limited to 'net')
-rw-r--r--net/udpcast/distinfo4
-rw-r--r--net/udpcast/patches/patch-ab12
2 files changed, 10 insertions, 6 deletions
diff --git a/net/udpcast/distinfo b/net/udpcast/distinfo
index 42117cbc099..21ccad28f05 100644
--- a/net/udpcast/distinfo
+++ b/net/udpcast/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.3 2006/08/22 15:52:15 joerg Exp $
+$NetBSD: distinfo,v 1.4 2006/08/28 15:07:48 drochner Exp $
SHA1 (udpcast-20060619.tar.gz) = ae95820c746fc6d6dc2c4c97d24d52105983e15c
RMD160 (udpcast-20060619.tar.gz) = 1f8ffefc5f5a412f1b8bb371895987734f6159b1
Size (udpcast-20060619.tar.gz) = 76311 bytes
SHA1 (patch-aa) = 71af13c0bede7748e8b9d32f920488d263d3348f
-SHA1 (patch-ab) = ef6b9b9ccc99028cc5ff939bc708d8812e032a62
+SHA1 (patch-ab) = c992f92e58bdc0726cc659e4720274ebcea58eb1
SHA1 (patch-ac) = 13e8289e336de78413ed6c9fdce6508222577365
SHA1 (patch-ad) = ab0ab1e9f5cd98d0e1ffd15f7846ea889608fed8
SHA1 (patch-ae) = 4937aec1283ca42652f9614e317fa63dcc500019
diff --git a/net/udpcast/patches/patch-ab b/net/udpcast/patches/patch-ab
index 4b2de6314f4..db28631d970 100644
--- a/net/udpcast/patches/patch-ab
+++ b/net/udpcast/patches/patch-ab
@@ -1,20 +1,24 @@
-$NetBSD: patch-ab,v 1.1 2006/08/09 14:00:08 drochner Exp $
+$NetBSD: patch-ab,v 1.2 2006/08/28 15:07:48 drochner Exp $
---- socklib.c.orig 2006-08-09 14:54:45.000000000 +0200
+--- socklib.c.orig 2006-05-24 00:19:49.000000000 +0200
+++ socklib.c
-@@ -879,6 +879,7 @@ int makeSocket(addr_type_t addr_type,
+@@ -879,6 +879,9 @@ int makeSocket(addr_type_t addr_type,
int ret, s;
struct sockaddr_in myaddr;
in_addr_t ip=0;
++#ifdef SO_REUSEPORT
+ int one = 1;
++#endif
#ifdef WINDOWS
static int lastSocket=-1;
-@@ -897,6 +898,8 @@ int makeSocket(addr_type_t addr_type,
+@@ -897,6 +900,10 @@ int makeSocket(addr_type_t addr_type,
exit(1);
}
++#ifdef SO_REUSEPORT
+ ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one));
++#endif
+
if(addr_type == ADDR_TYPE_MCAST && tmpl != NULL) {
ip = tmpl->sin_addr.s_addr;