diff options
Diffstat (limited to 'meta-oe/recipes-bsp/efivar/efivar/musl-strndupa.patch')
-rw-r--r-- | meta-oe/recipes-bsp/efivar/efivar/musl-strndupa.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-oe/recipes-bsp/efivar/efivar/musl-strndupa.patch b/meta-oe/recipes-bsp/efivar/efivar/musl-strndupa.patch new file mode 100644 index 000000000..fc8f8c8b2 --- /dev/null +++ b/meta-oe/recipes-bsp/efivar/efivar/musl-strndupa.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Taken from void linux | ||
2 | |||
3 | Index: git/src/linux.c | ||
4 | =================================================================== | ||
5 | --- git.orig/src/linux.c | ||
6 | +++ git/src/linux.c | ||
7 | @@ -40,6 +40,10 @@ | ||
8 | #include <efivar.h> | ||
9 | #include <efiboot.h> | ||
10 | |||
11 | +#if !defined(__GLIBC__) | ||
12 | +#define strndupa(x,s) strncpy(alloca(strlen(x)+1),x,s) | ||
13 | +#endif | ||
14 | + | ||
15 | #include "dp.h" | ||
16 | #include "linux.h" | ||
17 | #include "util.h" | ||