summaryrefslogtreecommitdiff
path: root/sysutils/psmisc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-03-19 03:11:13 +0000
committerjlam <jlam@pkgsrc.org>2000-03-19 03:11:13 +0000
commit60980cc9c77ad9a8a80a3968c8dc88156db06d70 (patch)
tree01b3012b4161b73f2afe545d774bbfbdba720d08 /sysutils/psmisc
parentd2521f19c341da667a3463c5bd235b8f9e9e8d5c (diff)
downloadpkgsrc-60980cc9c77ad9a8a80a3968c8dc88156db06d70.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);
+ }