nfs-utils-0004-fix-build-with-uClibc.patch 847 B

12345678910111213141516171819202122232425262728293031
  1. From ff82d4c89d6ca771dea06bbaa06ddf3fed760402 Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <jacmet@sunsite.dk>
  3. Date: Sat, 10 Nov 2012 18:58:48 +0100
  4. Subject: [PATCH] fix build with uClibc
  5. uClibc doesn't have/need libio.h, so don't include it from sockaddr.h
  6. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  7. ---
  8. support/include/sockaddr.h | 5 ++++-
  9. 1 file changed, 4 insertions(+), 1 deletion(-)
  10. diff --git a/support/include/sockaddr.h b/support/include/sockaddr.h
  11. index 9af2543..5eef2ec 100644
  12. --- a/support/include/sockaddr.h
  13. +++ b/support/include/sockaddr.h
  14. @@ -20,7 +20,10 @@
  15. #ifndef NFS_UTILS_SOCKADDR_H
  16. #define NFS_UTILS_SOCKADDR_H
  17. -#include <libio.h>
  18. +/* uClibc doesn't have/need libio.h */
  19. +#ifndef __UCLIBC__
  20. +#include <libio.h>
  21. +#endif
  22. #include <stdbool.h>
  23. #include <sys/socket.h>
  24. #include <netinet/in.h>
  25. --
  26. 1.7.9.5