aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/openthread/wpantund/basename.patch
blob: 30bd9e59cfa00970da82d18333cd687d1ef0f899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include libgen.h for getting prototype for basename()
Newer musl has remove prototype from string.h [1]
which renders a compile error with newer compilers like
clang 18+ about missing prototype.

[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/third_party/openthread/tools/spi-hdlc-adapter/spi-hdlc-adapter.c
+++ b/third_party/openthread/tools/spi-hdlc-adapter/spi-hdlc-adapter.c
@@ -32,6 +32,7 @@
 #endif
 
 #include <assert.h>
+#include <libgen.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>