diff options
| author | Alex Samorukov <samm@os2.kiev.ua> | 2021-01-04 01:16:28 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-01-04 13:28:28 +0100 |
| commit | dae90bbcc2876d2cffc2193f823837254ea5f309 (patch) | |
| tree | 45f032e98d87da57c9aa8db588b3ebdc53c03a8a | |
| parent | d4624d3468d389e372f103ec7aeec8db3d0195ba (diff) | |
| download | busybox-w32-dae90bbcc2876d2cffc2193f823837254ea5f309.tar.gz busybox-w32-dae90bbcc2876d2cffc2193f823837254ea5f309.tar.bz2 busybox-w32-dae90bbcc2876d2cffc2193f823837254ea5f309.zip | |
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>
| -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 4c014bc71..3cad28921 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
| @@ -298,6 +298,11 @@ | |||
| 298 | # include <sys/sendfile.h> | 298 | # include <sys/sendfile.h> |
| 299 | #endif | 299 | #endif |
| 300 | 300 | ||
| 301 | /* see sys/netinet6/in6.h */ | ||
| 302 | #if defined(__FreeBSD__) | ||
| 303 | # define s6_addr32 __u6_addr.__u6_addr32 | ||
| 304 | #endif | ||
| 305 | |||
| 301 | #define DEBUG 0 | 306 | #define DEBUG 0 |
| 302 | 307 | ||
| 303 | #define IOBUF_SIZE 8192 | 308 | #define IOBUF_SIZE 8192 |
