0001-Allow-build-with-uClibc.patch 860 B

12345678910111213141516171819202122232425262728293031323334353637
  1. From f1f24eb486c4376066884bae3c31f1c455a79836 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. Basically this replaces type definitions in <uchar.h>.
  6. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  7. ---
  8. src/export.c | 8 +++++++-
  9. 1 file changed, 7 insertions(+), 1 deletion(-)
  10. diff --git a/src/export.c b/src/export.c
  11. index 8321bd3..ef36add 100644
  12. --- a/src/export.c
  13. +++ b/src/export.c
  14. @@ -23,10 +23,16 @@
  15. #include <inttypes.h>
  16. #include <stdint.h>
  17. #include <stdlib.h>
  18. -#include <uchar.h>
  19. #include "efivar.h"
  20. +#ifdef __UCLIBC__
  21. +typedef int_least16_t char16_t;
  22. +typedef int_least32_t char32_t;
  23. +#else
  24. +#include <uchar.h>
  25. +#endif
  26. +
  27. #define EFIVAR_MAGIC 0xf3df1597
  28. #define ATTRS_UNSET 0xa5a5a5a5a5a5a5a5
  29. --
  30. 2.20.1