From dae90bbcc2876d2cffc2193f823837254ea5f309 Mon Sep 17 00:00:00 2001 From: Alex Samorukov Date: Mon, 4 Jan 2021 01:16:28 +0100 Subject: Fix httpd compilation on the FreeBSD FreeBSD is not exporting s6_addr32 by default, but has it. Signed-off-by: Alex Samorukov Signed-off-by: Denys Vlasenko --- networking/httpd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'networking') diff --git a/networking/httpd.c b/networking/httpd.c index 4c014bc..3cad289 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -298,6 +298,11 @@ # include #endif +/* see sys/netinet6/in6.h */ +#if defined(__FreeBSD__) +# define s6_addr32 __u6_addr.__u6_addr32 +#endif + #define DEBUG 0 #define IOBUF_SIZE 8192 -- cgit v1.1