summaryrefslogtreecommitdiffstats
path: root/freebsd/lib/libc/rpc/rpcb_clnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/lib/libc/rpc/rpcb_clnt.c')
-rw-r--r--freebsd/lib/libc/rpc/rpcb_clnt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/lib/libc/rpc/rpcb_clnt.c b/freebsd/lib/libc/rpc/rpcb_clnt.c
index 88717a36..a351c184 100644
--- a/freebsd/lib/libc/rpc/rpcb_clnt.c
+++ b/freebsd/lib/libc/rpc/rpcb_clnt.c
@@ -361,7 +361,11 @@ getclnthandle(const char *host, const struct netconfig *nconf, char **targaddr)
return (client);
}
} else {
+#ifndef __rtems__
if (getaddrinfo(host, "sunrpc", &hints, &res) != 0) {
+#else /* __rtems__ */
+ if (getaddrinfo(host, "111", &hints, &res) != 0) {
+#endif /* __rtems__ */
rpc_createerr.cf_stat = RPC_UNKNOWNHOST;
return NULL;
}