lsof: import from packages

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
Maxim Storchak
2014-06-14 08:38:13 +03:00
parent 13d6e6f3b4
commit dd1858d7f3
5 changed files with 109 additions and 0 deletions
@@ -0,0 +1,13 @@
--- a/lib/Makefile.skel
+++ b/lib/Makefile.skel
@@ -21,8 +21,8 @@ OBJ= ckkv.o cvfs.o dvch.o fino.o isfn.o
all: ${LIB}
${LIB}: ${OBJ}
- ${AR}
- ${RANLIB}
+ ${AR} ${LIB} ${OBJ}
+ ${RANLIB} ${LIB}
clean: FRC
rm -f ${LIB} ${OBJ} errs Makefile.bak a.out core
@@ -0,0 +1,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) */
+11
View File
@@ -0,0 +1,11 @@
--- a/Configure
+++ b/Configure
@@ -2806,7 +2806,7 @@ return(0); }
LSOF_TMP1=1
fi # }
fi # }
- if test $LSOF_TMP1 -eq 1 # {
+ if test 0 -eq 1 # {
then
LSOF_CFGF="$LSOF_CFGF -DHASSELINUX"
LSOF_CFGL="$LSOF_CFGL -lselinux"
+12
View File
@@ -0,0 +1,12 @@
--- a/Configure
+++ b/Configure
@@ -2682,6 +2682,9 @@ LOCKF_OWNER4
if test "X$LSOF_CC" = "X" # {
then
LSOF_CC=cc
+ fi # }
+ if test "X$LSOF_CCV" = "X" # {
+ then
LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'`
fi # }
if test "X$LINUX_CONF_CC" = "X" # {