mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-27 06:18:57 +00:00
19 lines
378 B
Diff
19 lines
378 B
Diff
--- a/support/nfs/svc_socket.c
|
|
+++ b/support/nfs/svc_socket.c
|
|
@@ -56,6 +56,7 @@
|
|
rpcp = getrpcbynumber(number);
|
|
#endif
|
|
|
|
+#ifndef __ANDROID__
|
|
if (ret == 0 && rpcp != NULL) {
|
|
/* First try name. */
|
|
ret = getservbyname_r(rpcp->r_name, proto, &servbuf, servdata,
|
|
@@ -72,6 +73,7 @@
|
|
}
|
|
}
|
|
}
|
|
+#endif
|
|
|
|
if (ret == 0 && servp != NULL)
|
|
return ntohs(servp->s_port);
|