Add lsof, thanks h3sp4wn (#1548)
[openwrt/svn-archive/archive.git] / utils / lsof / patches / 002-lsof_noportmap.patch
1 --- lsof_4.77/print.orig.c 2006-08-23 13:37:43.000000000 -0600
2 +++ lsof_4.77/print.c 2006-08-23 13:38:29.000000000 -0600
3 @@ -148,6 +148,7 @@
4 static void
5 fill_portmap()
6 {
7 +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_RPC__)
8 char buf[128], *cp, *nm;
9 CLIENT *c;
10 int h, port, pr;
11 @@ -266,6 +267,7 @@
12 Pth[pr][h] = pt;
13 }
14 clnt_destroy(c);
15 +#endif
16 }
17
18