summaryrefslogtreecommitdiff
path: root/user/efivar/musl-strndupa.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-19 01:45:24 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-19 01:45:24 +0000
commit0e68a11830ace5651f942c9c4ff830ce0b42d5b8 (patch)
tree75d8e8df3921a1d1774439f3359864f83e9d56a1 /user/efivar/musl-strndupa.patch
parent680084dab5a7a6639d4d3977d91c65f062b40e0e (diff)
downloadpackages-0e68a11830ace5651f942c9c4ff830ce0b42d5b8.tar.gz
packages-0e68a11830ace5651f942c9c4ff830ce0b42d5b8.tar.bz2
packages-0e68a11830ace5651f942c9c4ff830ce0b42d5b8.tar.xz
packages-0e68a11830ace5651f942c9c4ff830ce0b42d5b8.zip
user/efivar: new package
Diffstat (limited to 'user/efivar/musl-strndupa.patch')
-rw-r--r--user/efivar/musl-strndupa.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/efivar/musl-strndupa.patch b/user/efivar/musl-strndupa.patch
new file mode 100644
index 000000000..fc32d9740
--- /dev/null
+++ b/user/efivar/musl-strndupa.patch
@@ -0,0 +1,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"