packages/utils/lsof/patches/002-lsof_noportmap.patch
florian 738f28ba39 Add lsof, thanks h3sp4wn (#1548)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6917 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-10 10:20:35 +00:00

19 lines
392 B
Diff

--- lsof_4.77/print.orig.c 2006-08-23 13:37:43.000000000 -0600
+++ lsof_4.77/print.c 2006-08-23 13:38:29.000000000 -0600
@@ -148,6 +148,7 @@
static void
fill_portmap()
{
+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_RPC__)
char buf[128], *cp, *nm;
CLIENT *c;
int h, port, pr;
@@ -266,6 +267,7 @@
Pth[pr][h] = pt;
}
clnt_destroy(c);
+#endif
}