• 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/android-tools/0004-Fix-build-issue-with-musl.patch
Thomas PetazzoniThomas Petazzoni committed 88cbfd1007f23 Nov 2015
Raw file
Source viewDiff to previous
diff --git a/core/include/cutils/partition_utils.h b/core/include/cutils/partition_utils.h
 
1
[PATCH] Fix build issue with musl
2
​
3
cdefs.h header doesn't exist in musl toolchains:
4
http://wiki.musl-libc.org/wiki/FAQ
5
​
6
Also arpa/nameser.h doesn't use the same macro name to avoid several
7
inclusions.
8
​
9
Finally had an issue with framebuffer_service.c since it was missing the
10
TEMP_FAILURE_RETRY macro.
11
​
12
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
13
---
14
 core/adbd/arpa_nameser.h              | 12 +++++++++---
15
 core/adbd/base64.c                    |  1 -
16
 core/adbd/framebuffer_service.c       |  1 +
17
 core/adbd/qemu_pipe.h                 |  1 -
18
 core/include/cutils/android_reboot.h  |  8 ++++++--
19
 core/include/cutils/bitops.h          | 10 ++++++----
20
 core/include/cutils/partition_utils.h |  8 ++++++--
21
 extras/ext4_utils/sha1.c              |  3 ---
22
 extras/ext4_utils/sha1.h              | 13 ++++++-------
23
 9 files changed, 34 insertions(+), 23 deletions(-)
24
​
25
diff --git a/core/adbd/arpa_nameser.h b/core/adbd/arpa_nameser.h
26
index 438dc04..b2a28d6 100644
27
--- a/core/adbd/arpa_nameser.h
28
+++ b/core/adbd/arpa_nameser.h
29
@@ -52,11 +52,12 @@
30
 
31
 #ifndef _ARPA_NAMESER_H_
32
 #define _ARPA_NAMESER_H_
33
+#ifndef _ARPA_NAMESER_H
34
+#define _ARPA_NAMESER_H
35
 
36
 #define BIND_4_COMPAT
37
 
38
 #include <sys/types.h>
39
-#include <sys/cdefs.h>
40
 
41
 /*
42
  * Revision information.  This is the release date in YYYYMMDD format.
43
@@ -505,7 +506,9 @@ typedef enum __ns_cert_types {
44
 #define    ns_makecanon        __ns_makecanon
45
 #define    ns_samename     __ns_samename
46
 
47
-__BEGIN_DECLS
48
+#ifdef __cplusplus
49
+extern "C" {
50
+#endif
51
 int        ns_msg_getflag(ns_msg, int);
52
 uint16_t   ns_get16(const u_char *);
53
 uint32_t   ns_get32(const u_char *);
54
@@ -560,7 +563,9 @@ int     ns_samedomain(const char *, const char *);
55
 int        ns_subdomain(const char *, const char *);
56
 int        ns_makecanon(const char *, char *, size_t);
57
 int        ns_samename(const char *, const char *);
58
-__END_DECLS
59
+#ifdef __cplusplus
60
+}
61
+#endif
62
 
63
 #ifdef BIND_4_COMPAT
  • 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.