You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. From 7aa1fe6a0f9280571117c30c03c2cc521cd86ec3 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Sat, 23 Jun 2012 21:58:07 +0200
  4. Subject: [PATCH] uClibc without RPC support and musl does not install rpcent.h
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. [yann.morin.1998@free.fr: update for 0.3.1]
  7. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  8. [joerg.krause@embedded.rocks: musl fix]
  9. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
  10. [bernd.kuhls@t-online.de: update for 1.0.2]
  11. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  12. ---
  13. tirpc/rpc/rpcent.h | 5 +++--
  14. 1 file changed, 3 insertions(+), 2 deletions(-)
  15. diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h
  16. index 147f909..4a58180 100644
  17. --- a/tirpc/rpc/rpcent.h
  18. +++ b/tirpc/rpc/rpcent.h
  19. @@ -48,8 +48,9 @@
  20. extern "C" {
  21. #endif
  22. -/* These are defined in /usr/include/rpc/netdb.h */
  23. -#if !defined(__GLIBC__) || defined(__UCLIBC__)
  24. +/* These are defined in /usr/include/rpc/netdb.h, unless we are using
  25. + the C library without RPC support. */
  26. +#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__) || !defined(__GLIBC__)
  27. struct rpcent {
  28. char *r_name; /* name of server for this rpc program */
  29. char **r_aliases; /* alias list */
  30. --
  31. 1.9.1