+++ /dev/null
-diff -ru lsof_4.81.orig/lsof_4.81_src/lib/Makefile.skel lsof_4.81/lsof_4.81_src/lib/Makefile.skel
---- a/lib/Makefile.skel 2001-02-13 03:12:22.000000000 +0100
-+++ b/lib/Makefile.skel 2006-11-29 13:51:44.000000000 +0100
-@@ -21,8 +21,8 @@
- all: ${LIB}
-
- ${LIB}: ${OBJ}
-- ${AR}
-- ${RANLIB}
-+ ${AR} cr ${LIB} ${OBJ}
-+ ${RANLIB} ${LIB}
-
- clean: FRC
- rm -f ${LIB} ${OBJ} errs Makefile.bak a.out core
+++ /dev/null
---- a/print.c 2006-08-23 13:37:43.000000000 -0600
-+++ b/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
- }
-
-
+++ /dev/null
---- lsof_4.84/Configure 2008-10-21 18:21:45.000000000 +0200
-+++ lsof_4.84/Configure 2010-11-03 14:00:00.000000000 +0100
-@@ -5206,6 +5206,10 @@
- cp $LSOF_MKFC ${LSOF_LIB}/$LSOF_LIBMKF
- fi # }
- cat ./dialects/$LSOF_DIALECT_DIR/$LSOF_REST >> $LSOF_MKFC
-+if test "X$LSOF_CFLAGS_OVERRIDE" != "X" # {
-+then
-+ sed -i -e 's/^CFLAGS=/override CFLAGS=/' $LSOF_MKFC
-+fi # }
- if test "X$LSOF_LIB_NO" = "X" # {
- then
-
+++ /dev/null
-diff -rdup lsof_4.81.orig/lsof_4.81_src/dialects/linux/machine.h lsof_4.81/lsof_4.81_src/dialects/linux/machine.h
---- a/dialects/linux/machine.h 2007-04-24 18:20:58.000000000 +0200
-+++ b/dialects/linux/machine.h 2007-05-15 12:17:03.000000000 +0200
-@@ -616,6 +616,6 @@
- * zeromem is a macro that uses bzero or memset.
- */
-
--#define zeromem(a, l) bzero(a, l)
-+#define zeromem(a, l) memset(a, 0, l)
-
- #endif /* !defined(LSOF_MACHINE_H) */
-
--- /dev/null
+diff -ru lsof_4.81.orig/lsof_4.81_src/lib/Makefile.skel lsof_4.81/lsof_4.81_src/lib/Makefile.skel
+--- a/lib/Makefile.skel 2001-02-13 03:12:22.000000000 +0100
++++ b/lib/Makefile.skel 2006-11-29 13:51:44.000000000 +0100
+@@ -21,8 +21,8 @@
+ all: ${LIB}
+
+ ${LIB}: ${OBJ}
+- ${AR}
+- ${RANLIB}
++ ${AR} cr ${LIB} ${OBJ}
++ ${RANLIB} ${LIB}
+
+ clean: FRC
+ rm -f ${LIB} ${OBJ} errs Makefile.bak a.out core
--- /dev/null
+--- a/print.c 2006-08-23 13:37:43.000000000 -0600
++++ b/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
+ }
+
+
--- /dev/null
+--- lsof_4.84/Configure 2008-10-21 18:21:45.000000000 +0200
++++ lsof_4.84/Configure 2010-11-03 14:00:00.000000000 +0100
+@@ -5206,6 +5206,10 @@
+ cp $LSOF_MKFC ${LSOF_LIB}/$LSOF_LIBMKF
+ fi # }
+ cat ./dialects/$LSOF_DIALECT_DIR/$LSOF_REST >> $LSOF_MKFC
++if test "X$LSOF_CFLAGS_OVERRIDE" != "X" # {
++then
++ sed -i -e 's/^CFLAGS=/override CFLAGS=/' $LSOF_MKFC
++fi # }
+ if test "X$LSOF_LIB_NO" = "X" # {
+ then
+
--- /dev/null
+diff -rdup lsof_4.81.orig/lsof_4.81_src/dialects/linux/machine.h lsof_4.81/lsof_4.81_src/dialects/linux/machine.h
+--- a/dialects/linux/machine.h 2007-04-24 18:20:58.000000000 +0200
++++ b/dialects/linux/machine.h 2007-05-15 12:17:03.000000000 +0200
+@@ -616,6 +616,6 @@
+ * zeromem is a macro that uses bzero or memset.
+ */
+
+-#define zeromem(a, l) bzero(a, l)
++#define zeromem(a, l) memset(a, 0, l)
+
+ #endif /* !defined(LSOF_MACHINE_H) */
+
# lsof
#
#############################################################
-LSOF_VERSION = 4.84
+
+LSOF_VERSION = 4.85
LSOF_SOURCE = lsof_$(LSOF_VERSION).tar.bz2
LSOF_SITE = ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/