git: f75fc1617962 - main - www/lighttpd: fix listening on IPv6 addresses
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 May 2023 08:18:59 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=f75fc16179629b51725274bb82aac362fe6e41e5 commit f75fc16179629b51725274bb82aac362fe6e41e5 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-05-25 08:16:20 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-05-25 08:18:44 +0000 www/lighttpd: fix listening on IPv6 addresses PR: 271335 --- www/lighttpd/Makefile | 1 + www/lighttpd/files/patch-src_sock__addr.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile index 94f4aac98136..1d6e9701314a 100644 --- a/www/lighttpd/Makefile +++ b/www/lighttpd/Makefile @@ -1,5 +1,6 @@ PORTNAME?= lighttpd PORTVERSION= 1.4.70 +PORTREVISION= 1 CATEGORIES?= www MASTER_SITES?= https://download.lighttpd.net/lighttpd/releases-1.4.x/ diff --git a/www/lighttpd/files/patch-src_sock__addr.c b/www/lighttpd/files/patch-src_sock__addr.c new file mode 100644 index 000000000000..9917b52a0ef2 --- /dev/null +++ b/www/lighttpd/files/patch-src_sock__addr.c @@ -0,0 +1,11 @@ +--- src/sock_addr.c.orig 2023-05-15 15:41:44 UTC ++++ src/sock_addr.c +@@ -496,7 +496,7 @@ int sock_addr_from_str_hints(sock_addr * const restric + if (0 != (rc = getaddrinfo(str, NULL, &hints, &res))) { + hints.ai_family = AF_INET; + if ( +- #ifdef EAI_ADDRFAMILY ++ #if defined(__GLIBC__) && defined(EAI_ADDRFAMILY) + EAI_ADDRFAMILY == rc && + #endif + 0 == getaddrinfo(str, NULL, &hints, &res)) {