packages/utils/lsof/patches/002-lsof_noportmap.patch
Rosen Penev 2ecbc04423
lsof: update to 4.94.0
Upstream switched to GitHub and changed their tarball. Adjusted.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-11-24 22:38:19 -08:00

18 lines
357 B
Diff

--- a/print.c
+++ b/print.c
@@ -160,6 +160,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;
@@ -278,6 +279,7 @@ fill_portmap()
Pth[pr][h] = pt;
}
clnt_destroy(c);
+#endif
}
#endif /* !defined(HASNORPC_H) */