diff options
-rw-r--r-- | meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch | 37 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/mdns/mdns_2559.80.8.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch new file mode 100644 index 0000000000..22a9c27aad --- /dev/null +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 189f0d8e9913f4eaca9189f710155ffba9035f7e Mon Sep 17 00:00:00 2001 | ||
2 | From: Nguyen Dat Tho <tho3.nguyen@lge.com> | ||
3 | Date: Wed, 9 Apr 2025 13:05:24 +0900 | ||
4 | Subject: [PATCH] Fix build with gcc-15 | ||
5 | |||
6 | To fix error: | ||
7 | In file included from ../mDNSCore/mDNS.c:76: | ||
8 | ../mDNSShared/CommonServices.h:856:13: error: 'bool' cannot be defined via 'typedef' | ||
9 | 856 | typedef int bool; | ||
10 | | ^~~~ | ||
11 | ../mDNSShared/CommonServices.h:856:13: note: 'bool' is a keyword with '-std=c23' onwards | ||
12 | ../mDNSShared/CommonServices.h:856:1: warning: useless type name in empty declaration | ||
13 | |||
14 | Upstream-Status: Pending (An owner of this repository has limited the ability to open a pull request to users that are collaborators on this repository.) | ||
15 | |||
16 | Signed-off-by: Nguyen Dat Tho <tho3.nguyen@lge.com> | ||
17 | --- | ||
18 | mDNSShared/CommonServices.h | 3 +++ | ||
19 | 1 file changed, 3 insertions(+) | ||
20 | |||
21 | diff --git a/mDNSShared/CommonServices.h b/mDNSShared/CommonServices.h | ||
22 | index 7efb077..f0f3a8b 100644 | ||
23 | --- a/mDNSShared/CommonServices.h | ||
24 | +++ b/mDNSShared/CommonServices.h | ||
25 | @@ -192,6 +192,9 @@ extern "C" { | ||
26 | |||
27 | #include <stdint.h> | ||
28 | #include <arpa/inet.h> | ||
29 | +#if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L | ||
30 | + #include <stdbool.h> | ||
31 | +#endif | ||
32 | |||
33 | #elif ( TARGET_OS_SOLARIS ) | ||
34 | |||
35 | -- | ||
36 | 2.34.1 | ||
37 | |||
diff --git a/meta-networking/recipes-protocols/mdns/mdns_2559.80.8.bb b/meta-networking/recipes-protocols/mdns/mdns_2559.80.8.bb index 5f9af2661a..fc5add6c12 100644 --- a/meta-networking/recipes-protocols/mdns/mdns_2559.80.8.bb +++ b/meta-networking/recipes-protocols/mdns/mdns_2559.80.8.bb | |||
@@ -26,6 +26,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https | |||
26 | file://0001-Fix-SIGSEGV-during-DumpStateLog.patch \ | 26 | file://0001-Fix-SIGSEGV-during-DumpStateLog.patch \ |
27 | file://0005-Fix-missing-limit-declarations.patch \ | 27 | file://0005-Fix-missing-limit-declarations.patch \ |
28 | file://0004-Add-definition-for-MAX.patch \ | 28 | file://0004-Add-definition-for-MAX.patch \ |
29 | file://0001-Fix-build-with-gcc-15.patch \ | ||
29 | " | 30 | " |
30 | BRANCH = "rel/mDNSResponder-2559" | 31 | BRANCH = "rel/mDNSResponder-2559" |
31 | SRCREV = "ecc02274878b0a70dba229de642b081cd1c30927" | 32 | SRCREV = "ecc02274878b0a70dba229de642b081cd1c30927" |