summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/openthread/wpantund/basename.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-03-24 22:50:33 -0700
committerKhem Raj <raj.khem@gmail.com>2024-03-24 22:52:26 -0700
commit9c00bf177685e01053e5d384ddb2053ec9d05e1f (patch)
treec8e203aeb661499dbbc6cf6c6d7ba6d1469143a6 /meta-networking/recipes-connectivity/openthread/wpantund/basename.patch
parentc1d9e520e64e062f974772e31be3088fda117db3 (diff)
downloadmeta-openembedded-9c00bf177685e01053e5d384ddb2053ec9d05e1f.tar.gz
wpantund: Update to latest
Add patch to support portable basename Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/openthread/wpantund/basename.patch')
-rw-r--r--meta-networking/recipes-connectivity/openthread/wpantund/basename.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/openthread/wpantund/basename.patch b/meta-networking/recipes-connectivity/openthread/wpantund/basename.patch
new file mode 100644
index 000000000..30bd9e59c
--- /dev/null
+++ b/meta-networking/recipes-connectivity/openthread/wpantund/basename.patch
@@ -0,0 +1,19 @@
1include libgen.h for getting prototype for basename()
2Newer musl has remove prototype from string.h [1]
3which renders a compile error with newer compilers like
4clang 18+ about missing prototype.
5
6[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10--- a/third_party/openthread/tools/spi-hdlc-adapter/spi-hdlc-adapter.c
11+++ b/third_party/openthread/tools/spi-hdlc-adapter/spi-hdlc-adapter.c
12@@ -32,6 +32,7 @@
13 #endif
14
15 #include <assert.h>
16+#include <libgen.h>
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <stdint.h>