packages/utils/lsof/patches/002-lsof_noportmap.patch
luka 59f34e71f7 [packages] lsof: update to 4.86
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32153 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-10 00:07:55 +00:00

19 lines
357 B
Diff

--- 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) */