aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/mdns/files/0001-dns-sd-Include-missing-headers.patch
blob: c743b3eddb7e21d62fcc953269b57c3512f34ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From ea442b57f7a9bcd41d5b5bd1cafde4dbe5685d41 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 4 Nov 2021 07:31:32 -0700
Subject: [PATCH] dns-sd: Include missing headers

Fixes build on Musl

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 Clients/dns-sd.c | 2 ++
 1 file changed, 2 insertions(+)

--- a/Clients/dns-sd.c
+++ b/Clients/dns-sd.c
@@ -58,11 +58,13 @@
 //#define TEST_NEW_CLIENTSTUB 1
 
 #include <ctype.h>
+#include <stdarg.h>          // For va_args
 #include <stdio.h>          // For stdout, stderr
 #include <stdlib.h>         // For exit()
 #include <string.h>         // For strlen(), strcpy()
 #include <errno.h>          // For errno, EINTR
 #include <time.h>
+#include <sys/param.h>      // For MIN
 #include <sys/types.h>      // For u_char
 #ifdef APPLE_OSX_mDNSResponder
 #include <inttypes.h>       // For PRId64
--- a/mDNSPosix/nss_mdns.c
+++ b/mDNSPosix/nss_mdns.c
@@ -89,6 +89,9 @@
 
 #include <dns_sd.h>
 
+#if !defined(NETDB_INTERNAL)
+#  define NETDB_INTERNAL (-1)
+#endif
 
 //----------
 // Public functions