[git commit] Fix httpd compilation on the FreeBSD
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 4 12:28:28 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=dae90bbcc2876d2cffc2193f823837254ea5f309
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
FreeBSD is not exporting s6_addr32 by default, but has it.
Signed-off-by: Alex Samorukov <samm at os2.kiev.ua>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/httpd.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/networking/httpd.c b/networking/httpd.c
index 4c014bc71..3cad28921 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -298,6 +298,11 @@
# include <sys/sendfile.h>
#endif
+/* see sys/netinet6/in6.h */
+#if defined(__FreeBSD__)
+# define s6_addr32 __u6_addr.__u6_addr32
+#endif
+
#define DEBUG 0
#define IOBUF_SIZE 8192
More information about the busybox-cvs
mailing list