summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch')
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch
new file mode 100644
index 000000000..c743b3edd
--- /dev/null
+++ b/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch
@@ -0,0 +1,41 @@
1From ea442b57f7a9bcd41d5b5bd1cafde4dbe5685d41 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 4 Nov 2021 07:31:32 -0700
4Subject: [PATCH] dns-sd: Include missing headers
5
6Fixes build on Musl
7
8Upstream-Status: Pending
9Signed-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