wireshark: security bump to version 2.2.4
[buildroot-gz.git] / package / efivar / 0002-Allow-build-with-uClibc.patch
blob7c195872b09246cb73a42e0a2d127ed6f2abc561
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
6 Basically this replaces type definitions in <uchar.h>.
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(-)
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>
23 #include <efivar.h>
24 #include "lib.h"
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
33 #define EFIVAR_MAGIC 0xf3df1597
35 #define ATTRS_UNSET 0xa5a5a5a5a5a5a5a5
36 --
37 2.10.2