aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp/efivar/efivar/musl-strndupa.patch
blob: fc8f8c8b219713a589dd8095ab6f686d67b09bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Taken from void linux

Index: git/src/linux.c
===================================================================
--- git.orig/src/linux.c
+++ git/src/linux.c
@@ -40,6 +40,10 @@
 #include <efivar.h>
 #include <efiboot.h>
 
+#if !defined(__GLIBC__)
+#define strndupa(x,s) strncpy(alloca(strlen(x)+1),x,s)
+#endif
+
 #include "dp.h"
 #include "linux.h"
 #include "util.h"