summaryrefslogtreecommitdiffstats
path: root/utils/lsof/patches/002-lsof_noportmap.patch
blob: d0e88893c6939c276ceb7e04322089f0f190ea33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/print.c
+++ b/print.c
@@ -161,6 +161,7 @@ endnm(sz)
 static void
 fill_portmap()
 {
+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_RPC__)
 	char buf[128], *cp, *nm;
 	CLIENT *c;
 	int h, port, pr;
@@ -279,6 +280,7 @@ fill_portmap()
 	    Pth[pr][h] = pt;
 	}
 	clnt_destroy(c);
+#endif
 }
 #endif	/* !defined(HASNORPC_H) */