• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/efivar/0002-Allow-build-with-uClibc.patch
Andy ShevchenkoAndy Shevchenko committed 64551a8f5f727 Nov 2016
Raw file
Source viewDiff to previous
 
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
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.