0004-Fix-build-issue-with-musl.patch 1.6 KB

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