PageRenderTime 50ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/meta/recipes-devtools/apt/apt/0001-apt-1.2.12-Fix-musl-build.patch

https://gitlab.com/actawithamana/poky
Patch | 50 lines | 43 code | 7 blank | 0 comment | 0 complexity | 97cf85a4426c6b6149d766dc77b8a0ca MD5 | raw file
  1. From 33b97e089d4a98d3acd20bd78337dd915b989bc2 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com>
  3. Date: Fri, 5 Aug 2016 15:24:27 -0500
  4. Subject: [PATCH] apt 1.2.12: Fix musl build
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. methods/connect.cc: Musl doesn't support AI_IDN flag in netdb.h
  9. header so define it manually.
  10. apt-pkg/contrib/srvrec.h: Add explicity include of sys/types.h
  11. to avoid errors in types u_int_SIZE.
  12. Upstream-status: Pending
  13. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
  14. ---
  15. apt-pkg/contrib/srvrec.h | 1 +
  16. methods/connect.cc | 3 +++
  17. 2 files changed, 4 insertions(+)
  18. diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h
  19. index 01b8102..15b6875 100644
  20. --- a/apt-pkg/contrib/srvrec.h
  21. +++ b/apt-pkg/contrib/srvrec.h
  22. @@ -9,6 +9,7 @@
  23. #ifndef SRVREC_H
  24. #define SRVREC_H
  25. +#include <sys/types.h>
  26. #include <arpa/nameser.h>
  27. #include <vector>
  28. #include <string>
  29. diff --git a/methods/connect.cc b/methods/connect.cc
  30. index 07a730b..bb0ab5a 100644
  31. --- a/methods/connect.cc
  32. +++ b/methods/connect.cc
  33. @@ -33,6 +33,9 @@
  34. #include <sys/socket.h>
  35. #include <arpa/inet.h>
  36. #include <netdb.h>
  37. +#ifndef AI_IDN
  38. +#define AI_IDN 0x0040
  39. +#endif
  40. #include "connect.h"
  41. #include "rfc2553emu.h"
  42. --
  43. 2.1.4