summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/mdns/files/0001-nss_mdns-Do-not-include-nss.h-when-libc-glibc.patch
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2019-10-29 11:06:54 +0200
committerKhem Raj <raj.khem@gmail.com>2019-11-01 17:22:52 -0700
commitb317539ef1f3303a6f23dd0a6abf5a25d39524c8 (patch)
tree05604dafed7875090b87900b1f46fcd94229865b /meta-networking/recipes-protocols/mdns/files/0001-nss_mdns-Do-not-include-nss.h-when-libc-glibc.patch
parentc578a2fdfd9a1acad23240e8e606478e43115cef (diff)
downloadmeta-openembedded-b317539ef1f3303a6f23dd0a6abf5a25d39524c8.tar.gz
mdns: Mark as incompatible with musl
musl does not support mDNS or NSS plugins. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols/mdns/files/0001-nss_mdns-Do-not-include-nss.h-when-libc-glibc.patch')
-rw-r--r--meta-networking/recipes-protocols/mdns/files/0001-nss_mdns-Do-not-include-nss.h-when-libc-glibc.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/meta-networking/recipes-protocols/mdns/files/0001-nss_mdns-Do-not-include-nss.h-when-libc-glibc.patch b/meta-networking/recipes-protocols/mdns/files/0001-nss_mdns-Do-not-include-nss.h-when-libc-glibc.patch
deleted file mode 100644
index 863866d18e..0000000000
--- a/meta-networking/recipes-protocols/mdns/files/0001-nss_mdns-Do-not-include-nss.h-when-libc-glibc.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From d3082d2c606c810aa0a39378bf1e02575af3a301 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 2 Feb 2018 21:54:11 -0800
4Subject: [PATCH] nss_mdns: Do not include nss.h when libc != glibc
5
6Provide nss_status macro instead for non-glibc case
7where nss.h is absent
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 mDNSPosix/nss_mdns.c | 13 ++++++++++++-
13 1 file changed, 12 insertions(+), 1 deletion(-)
14
15diff --git a/mDNSPosix/nss_mdns.c b/mDNSPosix/nss_mdns.c
16index afadb3c..c469584 100755
17--- a/mDNSPosix/nss_mdns.c
18+++ b/mDNSPosix/nss_mdns.c
19@@ -378,8 +378,19 @@ init_config ();
20
21 #define ENTNAME hostent
22 #define DATABASE "hosts"
23-
24+#ifdef __GLIBC__
25 #include <nss.h>
26+#else
27+enum nss_status
28+{
29+ NSS_STATUS_TRYAGAIN = -2,
30+ NSS_STATUS_UNAVAIL,
31+ NSS_STATUS_NOTFOUND,
32+ NSS_STATUS_SUCCESS,
33+ NSS_STATUS_RETURN
34+};
35+#define NETDB_INTERNAL NULL
36+#endif
37 // For nss_status
38 #include <netdb.h>
39 // For hostent
40--
412.16.1
42