summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch')
-rw-r--r--meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch
new file mode 100644
index 0000000000..108ed76b30
--- /dev/null
+++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch
@@ -0,0 +1,27 @@
1From 502aa4ab4bbc790fb2999ff2b5f10dabd7085190 Mon Sep 17 00:00:00 2001
2From: "deepan.shivap" <deepan.shivap@lge.com>
3Date: Mon, 2 Dec 2024 23:12:17 +0900
4Subject: [PATCH] Musl build fix
5
6usage of getaddrinfo_a creates dependency on libanl, which is specific
7to glibc.
8
9Upstream-Status: Pending
10Signed-off-by: deepan.shivap <deepan.shivap@lge.com>
11---
12 src/posix/platform/CMakeLists.txt | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/posix/platform/CMakeLists.txt b/src/posix/platform/CMakeLists.txt
16index b4ac241f5..7b2028e45 100644
17--- a/src/posix/platform/CMakeLists.txt
18+++ b/src/posix/platform/CMakeLists.txt
19@@ -175,7 +175,7 @@ target_link_libraries(openthread-posix
20 )
21
22 option(OT_TARGET_OPENWRT "enable openthread posix for OpenWRT" OFF)
23-if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT)
24+if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT AND NOT OT_TARGET_MUSL)
25 target_compile_definitions(ot-posix-config
26 INTERFACE "OPENTHREAD_POSIX_CONFIG_NAT64_AIL_PREFIX_ENABLE=1"
27 )