FreeBSD Bugzilla – Attachment 187611 Details for
Bug 223288
www/lighttpd: fix build without IPV6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
lighttpd.patch (text/plain), 2.08 KB, created by
Piotr Kubaj
on 2017-10-31 14:56:25 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2017-10-31 14:56:25 UTC
Size:
2.08 KB
patch
obsolete
>Index: patch-patch-src__network.c >=================================================================== >--- patch-patch-src__network.c (revision 453237) >+++ patch-patch-src__network.c (working copy) >@@ -1,19 +0,0 @@ >---- patch-src_network.c.orig 2017-10-28 15:54:22 UTC >-+++ patch-src_network.c >-@@ -0,0 +1,16 @@ >-+--- src/network.c.orig 2017-10-28 14:00:17 UTC >-++++ src/network.c >-+@@ -77,9 +77,13 @@ static void network_host_normalize_addr_ >-+ if (addr->plain.sa_family == AF_INET6) >-+ buffer_append_string_len(host, CONST_STR_LEN("]")); >-+ if (addr->plain.sa_family != AF_UNIX) { >-++#ifdef HAVE_IPV6 >-+ unsigned short port = (addr->plain.sa_family == AF_INET) >-+ ? ntohs(addr->ipv4.sin_port) >-+ : ntohs(addr->ipv6.sin6_port); >-++#elif >-++ unsigned short port = ntohs(addr->ipv6.sin6_port); >-++#endif >-+ buffer_append_string_len(host, CONST_STR_LEN(":")); >-+ buffer_append_int(host, (int)port); >-+ } >Index: patch-src_network.c >=================================================================== >--- patch-src_network.c (revision 0) >+++ patch-src_network.c (working copy) >@@ -0,0 +1,16 @@ >+--- src/network.c.orig 2017-10-28 14:00:17 UTC >++++ src/network.c >+@@ -77,9 +77,13 @@ static void network_host_normalize_addr_ >+ if (addr->plain.sa_family == AF_INET6) >+ buffer_append_string_len(host, CONST_STR_LEN("]")); >+ if (addr->plain.sa_family != AF_UNIX) { >++#ifdef HAVE_IPV6 >+ unsigned short port = (addr->plain.sa_family == AF_INET) >+ ? ntohs(addr->ipv4.sin_port) >+ : ntohs(addr->ipv6.sin6_port); >++#elif >++ unsigned short port = ntohs(addr->ipv.sin_port); >++#endif >+ buffer_append_string_len(host, CONST_STR_LEN(":")); >+ buffer_append_int(host, (int)port); >+ } > >Property changes on: patch-src_network.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223288
:
187538
| 187611