[PATCH] Fix httpd compilation on the FreeBSD
Alex Samorukov
samm at os2.kiev.ua
Mon Jan 4 00:16:28 UTC 2021
FreeBSD is not exporting s6_addr32 by default, but has it.
Signed-off-by: Alex Samorukov <samm at os2.kiev.ua>
---
networking/httpd.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/networking/httpd.c b/networking/httpd.c
index 4c014bc71..8b86ed43d 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -298,6 +298,11 @@
# include <sys/sendfile.h>
#endif
+/* see sys/netinet6/in6.h */
+#ifdef __FreeBSD__
+#define s6_addr32 __u6_addr.__u6_addr32
+#endif
+
#define DEBUG 0
#define IOBUF_SIZE 8192
--
2.29.1
More information about the busybox
mailing list