Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From ea442b57f7a9bcd41d5b5bd1cafde4dbe5685d41 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 4 Nov 2021 07:31:32 -0700 |
| 4 | Subject: [PATCH] dns-sd: Include missing headers |
| 5 | |
| 6 | Fixes build on Musl |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | Clients/dns-sd.c | 2 ++ |
| 12 | 1 file changed, 2 insertions(+) |
| 13 | |
| 14 | --- a/Clients/dns-sd.c |
| 15 | +++ b/Clients/dns-sd.c |
| 16 | @@ -58,11 +58,13 @@ |
| 17 | //#define TEST_NEW_CLIENTSTUB 1 |
| 18 | |
| 19 | #include <ctype.h> |
| 20 | +#include <stdarg.h> // For va_args |
| 21 | #include <stdio.h> // For stdout, stderr |
| 22 | #include <stdlib.h> // For exit() |
| 23 | #include <string.h> // For strlen(), strcpy() |
| 24 | #include <errno.h> // For errno, EINTR |
| 25 | #include <time.h> |
| 26 | +#include <sys/param.h> // For MIN |
| 27 | #include <sys/types.h> // For u_char |
| 28 | #ifdef APPLE_OSX_mDNSResponder |
| 29 | #include <inttypes.h> // For PRId64 |
| 30 | --- a/mDNSPosix/nss_mdns.c |
| 31 | +++ b/mDNSPosix/nss_mdns.c |
| 32 | @@ -89,6 +89,9 @@ |
| 33 | |
| 34 | #include <dns_sd.h> |
| 35 | |
| 36 | +#if !defined(NETDB_INTERNAL) |
| 37 | +# define NETDB_INTERNAL (-1) |
| 38 | +#endif |
| 39 | |
| 40 | //---------- |
| 41 | // Public functions |