python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / android-tools / 0004-Fix-build-issue-with-musl.patch
blob964eb87a6dbef08a1a5a69ac9c2f5ada1cec2e41
1 [PATCH] Fix build issue with musl
3 arpa/nameser.h doesn't use the same macro name to avoid several
4 inclusions.
6 Finally had an issue with framebuffer_service.c since it was missing the
7 TEMP_FAILURE_RETRY macro.
9 Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
10 ---
11 core/adbd/arpa_nameser.h | 12 +++++++++---
12 core/adbd/base64.c | 1 -
13 core/adbd/framebuffer_service.c | 1 +
14 core/adbd/qemu_pipe.h | 1 -
15 core/include/cutils/android_reboot.h | 8 ++++++--
16 core/include/cutils/bitops.h | 10 ++++++----
17 core/include/cutils/partition_utils.h | 8 ++++++--
18 extras/ext4_utils/sha1.c | 3 ---
19 extras/ext4_utils/sha1.h | 13 ++++++-------
20 9 files changed, 34 insertions(+), 23 deletions(-)
22 diff --git a/core/adbd/arpa_nameser.h b/core/adbd/arpa_nameser.h
23 index 438dc04..b2a28d6 100644
24 --- a/core/adbd/arpa_nameser.h
25 +++ b/core/adbd/arpa_nameser.h
26 @@ -52,6 +52,8 @@
28 #ifndef _ARPA_NAMESER_H_
29 #define _ARPA_NAMESER_H_
30 +#ifndef _ARPA_NAMESER_H
31 +#define _ARPA_NAMESER_H
33 #define BIND_4_COMPAT
35 @@ -574,4 +579,5 @@ __END_DECLS
36 #define XLOG(...) do {} while (0)
37 #endif
39 +#endif /* !_ARPA_NAMESER_H */
40 #endif /* !_ARPA_NAMESER_H_ */
41 diff --git a/core/adbd/framebuffer_service.c b/core/adbd/framebuffer_service.c
42 index 20c08d2..48e0241 100644
43 --- a/core/adbd/framebuffer_service.c
44 +++ b/core/adbd/framebuffer_service.c
45 @@ -26,6 +26,7 @@
46 #include "fdevent.h"
47 #include "adb.h"
49 +#include <cutils/fs.h>
50 #include <linux/fb.h>
51 #include <sys/ioctl.h>
52 #include <sys/mman.h>
53 --
54 2.6.1