aboutsummaryrefslogtreecommitdiffstats
path: root/testing/efivar/musl-strndupa.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-10-11 11:25:07 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-10-11 11:26:05 +0200
commitf31278a38b0ac4700b23649cd5e1d5647b7a2343 (patch)
tree29e67524c1d3081fd1e75becdf0836ca8cfb38ca /testing/efivar/musl-strndupa.patch
parent422aa783fa2d19e37e1ff5efccd7cbb1df722e65 (diff)
downloadaports-f31278a38b0ac4700b23649cd5e1d5647b7a2343.tar.bz2
aports-f31278a38b0ac4700b23649cd5e1d5647b7a2343.tar.xz
testing/efivar: new aport
Diffstat (limited to 'testing/efivar/musl-strndupa.patch')
-rw-r--r--testing/efivar/musl-strndupa.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/efivar/musl-strndupa.patch b/testing/efivar/musl-strndupa.patch
new file mode 100644
index 0000000000..5fcc1847c2
--- /dev/null
+++ b/testing/efivar/musl-strndupa.patch
@@ -0,0 +1,13 @@
+--- ./src/linux.c 2017-02-13 17:52:14.000000000 +0100
++++ ./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"