]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/efivar/0002-Allow-build-with-uClibc.patch
efibootmgr: explicitly depend on host-pkgconf and popt
[coffee/buildroot.git] / package / efivar / 0002-Allow-build-with-uClibc.patch
1 From 2255601757a8a58baddad2d37d0bcc6b003a3732 Mon Sep 17 00:00:00 2001
2 From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
3 Date: Fri, 25 Nov 2016 19:42:27 +0200
4 Subject: [PATCH] Allow build with uClibc
5
6 Basically this replaces type definitions in <uchar.h>.
7
8 Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
9 ---
10  src/export.c | 8 +++++++-
11  1 file changed, 7 insertions(+), 1 deletion(-)
12
13 diff --git a/src/export.c b/src/export.c
14 index 7f2d4dd..72c02d1 100644
15 --- a/src/export.c
16 +++ b/src/export.c
17 @@ -21,11 +21,17 @@
18  #include <inttypes.h>
19  #include <stdint.h>
20  #include <stdlib.h>
21 -#include <uchar.h>
22  
23  #include <efivar.h>
24  #include "lib.h"
25  
26 +#ifdef __UCLIBC__
27 +typedef int_least16_t char16_t;
28 +typedef int_least32_t char32_t;
29 +#else
30 +#include <uchar.h>
31 +#endif
32 +
33  #define EFIVAR_MAGIC 0xf3df1597
34  
35  #define ATTRS_UNSET 0xa5a5a5a5a5a5a5a5
36 -- 
37 2.10.2
38