diff options
author | Alex Samorukov | 2021-01-04 01:16:28 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-01-04 13:28:28 +0100 |
commit | dae90bbcc2876d2cffc2193f823837254ea5f309 (patch) | |
tree | 45f032e98d87da57c9aa8db588b3ebdc53c03a8a /networking | |
parent | d4624d3468d389e372f103ec7aeec8db3d0195ba (diff) | |
download | busybox-dae90bbcc2876d2cffc2193f823837254ea5f309.zip busybox-dae90bbcc2876d2cffc2193f823837254ea5f309.tar.gz |
Fix httpd compilation on the FreeBSD
FreeBSD is not exporting s6_addr32 by default, but has it.
Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <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 |