mdns: Upgrade to 1310.140.1

Fix build with musl while here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2021-11-04 07:40:35 -07:00
parent 118bfa6493
commit d04f3c9bfe
2 changed files with 44 additions and 3 deletions
@@ -0,0 +1,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
@@ -4,7 +4,7 @@ HOMEPAGE = "http://developer.apple.com/networking/bonjour/"
LICENSE = "Apache-2.0 & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=31c50371921e0fb731003bbc665f29bf"
COMPATIBLE_HOST:libc-musl = 'null'
DEPENDS:append:libc-musl = " musl-nscd"
RPROVIDES:${PN} += "libdns_sd.so"
@@ -21,9 +21,9 @@ SRC_URI = "https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-${P
file://0009-Fix-possible-NULL-dereference.patch;patchdir=.. \
file://0010-Handle-errors-from-socket-calls.patch;patchdir=.. \
file://0011-Change-a-dynamic-allocation-to-file-scope-variable.patch;patchdir=.. \
file://0001-dns-sd-Include-missing-headers.patch;patchdir=.. \
"
SRC_URI[md5sum] = "dfcfd4d7f29a56ec99e7df1d21db5e7b"
SRC_URI[sha256sum] = "bea29e1616cd56ccb8f88c0fad2bcdc4031f4deb2d899c793e2f27a8384f0b34"
SRC_URI[sha256sum] = "040f6495c18b9f0557bcf9e00cbcfc82b03405f5ba6963dc147730ca0ca90d6f"
CVE_PRODUCT = "apple:mdnsresponder"