qt5base-0005-uclibc-no-gnu-lib-names.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [PATCH]: fix build on uClibc
  2. Reported upstream: https://bugreports.qt-project.org/browse/QTBUG-35742
  3. uClibc defines __GNU_LIBRARY__ like glibc, but doesn't provide
  4. gnu/lib-names.h, so the build breaks with:
  5. kernel/qdnslookup_unix.cpp:56:29: fatal error: gnu/lib-names.h:
  6. No such file or directory
  7. Fix it by explicitly checking for !uClibc.
  8. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  9. ---
  10. src/network/kernel/qdnslookup_unix.cpp | 2 +-
  11. src/network/kernel/qhostinfo_unix.cpp | 2 +-
  12. 2 files changed, 2 insertions(+), 2 deletions(-)
  13. Index: qt5base-5.2.0/src/network/kernel/qdnslookup_unix.cpp
  14. ===================================================================
  15. --- qt5base-5.2.0.orig/src/network/kernel/qdnslookup_unix.cpp
  16. +++ qt5base-5.2.0/src/network/kernel/qdnslookup_unix.cpp
  17. @@ -52,7 +52,7 @@
  18. #include <arpa/nameser_compat.h>
  19. #include <resolv.h>
  20. -#ifdef __GNU_LIBRARY__
  21. +#if defined(__GNU_LIBRARY__) && !defined(__UCLIBC__)
  22. # include <gnu/lib-names.h>
  23. #endif
  24. Index: qt5base-5.2.0/src/network/kernel/qhostinfo_unix.cpp
  25. ===================================================================
  26. --- qt5base-5.2.0.orig/src/network/kernel/qhostinfo_unix.cpp
  27. +++ qt5base-5.2.0/src/network/kernel/qhostinfo_unix.cpp
  28. @@ -63,7 +63,7 @@
  29. # include <resolv.h>
  30. #endif
  31. -#ifdef __GNU_LIBRARY__
  32. +#if defined(__GNU_LIBRARY__) && !defined(__UCLIBC__)
  33. # include <gnu/lib-names.h>
  34. #endif