summaryrefslogtreecommitdiff
path: root/sysutils/psmisc
diff options
context:
space:
mode:
authorjlam <jlam>2000-03-19 03:11:13 +0000
committerjlam <jlam>2000-03-19 03:11:13 +0000
commit4238ba02bd61fdbb01f359599484621f9bd5715e (patch)
tree01b3012b4161b73f2afe545d774bbfbdba720d08 /sysutils/psmisc
parent6221b4adf16ac99c9a66cd65a2198029159d959e (diff)
downloadpkgsrc-4238ba02bd61fdbb01f359599484621f9bd5715e.tar.gz
Fix my sloppiness...this should fix 1.4.x compiles.
Diffstat (limited to 'sysutils/psmisc')
-rw-r--r--sysutils/psmisc/patches/patch-ad12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysutils/psmisc/patches/patch-ad b/sysutils/psmisc/patches/patch-ad
index 362661fb2dc..98e4de24a95 100644
--- a/sysutils/psmisc/patches/patch-ad
+++ b/sysutils/psmisc/patches/patch-ad
@@ -1,7 +1,7 @@
-$NetBSD: patch-ad,v 1.3 2000/03/17 15:54:53 jlam Exp $
+$NetBSD: patch-ad,v 1.4 2000/03/19 03:11:13 jlam Exp $
--- pstree.c.orig Sat May 1 15:40:56 1999
-+++ pstree.c Thu Mar 16 23:22:45 2000
++++ pstree.c Sat Mar 18 22:06:19 2000
@@ -2,6 +2,9 @@
/* Copyright 1993-1999 Werner Almesberger. See file COPYING for details. */
@@ -102,16 +102,16 @@ $NetBSD: patch-ad,v 1.3 2000/03/17 15:54:53 jlam Exp $
&ppid) == 4) {
+#endif
+#if defined(BSD_44_PROC) && !defined(BSD_PROC_CMDLINE)
-+ add_proc(comm,pid,ppid,st,st_uid,NULL,0);
++ add_proc(comm,pid,ppid,st.st_uid,NULL,0);
+#else
if (!print_args) add_proc(comm,pid,ppid,st.st_uid,NULL,0);
else {
sprintf(path,"%s/%d/cmdline",PROC_BASE,pid);
-@@ -426,6 +455,7 @@
- (void) close(fd);
+@@ -427,6 +456,7 @@
if (size) buffer[size++] = 0;
add_proc(comm,pid,ppid,st.st_uid,buffer,size);
-+#endif
}
++#endif
}
(void) fclose(file);
+ }