1From f1f24eb486c4376066884bae3c31f1c455a79836 Mon Sep 17 00:00:00 2001 2From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> 3Date: Fri, 25 Nov 2016 19:42:27 +0200 4Subject: [PATCH] Allow build with uClibc 5 6Basically this replaces type definitions in <uchar.h>. 7 8Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> 9--- 10 src/export.c | 8 +++++++- 11 1 file changed, 7 insertions(+), 1 deletion(-) 12 13diff --git a/src/export.c b/src/export.c 14index 8321bd3..ef36add 100644 15--- a/src/export.c 16+++ b/src/export.c 17@@ -23,10 +23,16 @@ 18 #include <inttypes.h> 19 #include <stdint.h> 20 #include <stdlib.h> 21-#include <uchar.h> 22 23 #include "efivar.h" 24 25+#ifdef __UCLIBC__ 26+typedef int_least16_t char16_t; 27+typedef int_least32_t char32_t; 28+#else 29+#include <uchar.h> 30+#endif 31+ 32 #define EFIVAR_MAGIC 0xf3df1597 33 34 #define ATTRS_UNSET 0xa5a5a5a5a5a5a5a5 35-- 362.20.1 37 38