summaryrefslogtreecommitdiff
path: root/net/netselect/files/patch-netselect.c
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2015-03-09 06:48:12 +0000
committerMikhail Teterin <mi@FreeBSD.org>2015-03-09 06:48:12 +0000
commitbdd6a2717bb39be8ae3cb5f5f66d260de7ca0d4d (patch)
treec163acaaf5d0893c2dcc0b952f164a07d6265460 /net/netselect/files/patch-netselect.c
parentThe actual reason, this port was broken was a bug in a recent version of (diff)
Unbreak -- seems to work for me, no errors quoted in the BROKEN-message
appear. While here resolve a worning and arrange for installing the author's README-file, if DOCS-option is on.
Notes
Notes: svn path=/head/; revision=380835
Diffstat (limited to '')
-rw-r--r--net/netselect/files/patch-netselect.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/net/netselect/files/patch-netselect.c b/net/netselect/files/patch-netselect.c
index 6e7f1cacca48..6717a97234aa 100644
--- a/net/netselect/files/patch-netselect.c
+++ b/net/netselect/files/patch-netselect.c
@@ -1,5 +1,5 @@
---- netselect.c.orig 2006-07-14 22:59:18.000000000 +0200
-+++ netselect.c 2006-07-14 22:57:22.000000000 +0200
+--- netselect.c 2001-08-29 05:18:57.000000000 -0400
++++ netselect.c 2015-03-09 02:31:02.000000000 -0400
@@ -39,14 +39,13 @@
* hey, great! Let me know. -- apenwarr
*/
@@ -53,3 +53,18 @@
ip->ip_ttl = ttl;
ip->ip_v = IPVERSION;
ip->ip_id = htons(ident + seq);
+@@ -771,12 +776,8 @@
+ int cc = 0;
+ time_t msec_used;
+ HostData *host;
+-
+-#if !defined(__GLIBC__)
+- int fromlen = sizeof(from);
+-#else /* __GLIBC__ */
+- size_t fromlen = sizeof(from);
+-#endif /* __GLIBC__ */
++
++ socklen_t fromlen = sizeof(from);
+
+ FD_ZERO(&fds);
+ FD_SET(sock, &fds);