blob: 5864ac63e40e6fd616721b42c3e07007a2538414 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 8000b9afc858472912aace985004b44f8eb467e0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 18 Aug 2017 09:49:49 -0700
4Subject: [PATCH] support musl
5
6Upstream-Status: Pending
7---
8 src/linux.c | 4 ++++
9 1 file changed, 4 insertions(+)
10
11diff --git a/src/linux.c b/src/linux.c
12index 34ed479..1304f2b 100644
13--- a/src/linux.c
14+++ b/src/linux.c
15@@ -40,6 +40,10 @@
16 #include <efivar.h>
17 #include <efiboot.h>
18
19+#if !defined(__GLIBC__)
20+#define strndupa(x,s) strncpy(alloca(strlen(x)+1),x,s)
21+#endif
22+
23 #include "dp.h"
24 #include "linux.h"
25 #include "util.h"