diff options
Diffstat (limited to 'meta-networking/recipes-protocols/mdns/mdns/0001-mdns-include-stddef.h-for-NULL.patch')
-rw-r--r-- | meta-networking/recipes-protocols/mdns/mdns/0001-mdns-include-stddef.h-for-NULL.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-mdns-include-stddef.h-for-NULL.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-mdns-include-stddef.h-for-NULL.patch new file mode 100644 index 000000000..c57ce8fa5 --- /dev/null +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-mdns-include-stddef.h-for-NULL.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From d744609c56f9872e5aa71707f1f71feec9867f51 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Rapeli <mikko.rapeli@bmw.de> | ||
3 | Date: Tue, 14 Jul 2020 16:36:29 +0000 | ||
4 | Subject: [PATCH 1/2] mdns: include <stddef.h> for NULL | ||
5 | |||
6 | Fixes build error with version 1096.40.7: | ||
7 | |||
8 | ../mDNSCore/mDNS.c:11385:26: error: 'NULL' undeclared (first use in this function) | ||
9 | 11385 | const char *reason = NULL; | ||
10 | | ^~~~ | ||
11 | ../mDNSCore/mDNS.c:56:1: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'? | ||
12 | 55 | #include "dns_sd_internal.h" | ||
13 | +++ |+#include <stddef.h> | ||
14 | 56 | | ||
15 | ../mDNSCore/mDNS.c:11385:26: note: each undeclared identifier is reported only once for each function it appears in | ||
16 | 11385 | const char *reason = NULL; | ||
17 | | ^~~~ | ||
18 | |||
19 | Upstream-Status: Pending | ||
20 | |||
21 | Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> | ||
22 | --- | ||
23 | mDNSCore/mDNS.c | 1 + | ||
24 | 1 file changed, 1 insertion(+) | ||
25 | |||
26 | diff --git a/mDNSCore/mDNS.c b/mDNSCore/mDNS.c | ||
27 | index 2fbea04..d4b9af5 100755 | ||
28 | --- a/mDNSCore/mDNS.c | ||
29 | +++ b/mDNSCore/mDNS.c | ||
30 | @@ -23,6 +23,7 @@ | ||
31 | * routines, or types (which may or may not be present on any given platform). | ||
32 | */ | ||
33 | |||
34 | +#include <stddef.h> /* for NULL */ | ||
35 | #include "DNSCommon.h" // Defines general DNS utility routines | ||
36 | #include "uDNS.h" // Defines entry points into unicast-specific routines | ||
37 | |||
38 | -- | ||
39 | 2.20.1 | ||
40 | |||