summaryrefslogblamecommitdiff
path: root/user/efivar/musl-strndupa.patch
blob: fc32d9740627db7f4d6d34fa4249b175375eea3b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                   
--- efivar-31/src/linux.c	2017-02-13 17:52:14.000000000 +0100
+++ efivar-31/src/linux.c	2017-02-18 04:42:13.893911649 +0100
@@ -44,6 +44,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"