summaryrefslogtreecommitdiff
path: root/sysutils/pstree/patches
diff options
context:
space:
mode:
authoryyamano <yyamano@pkgsrc.org>2003-02-12 15:29:24 +0000
committeryyamano <yyamano@pkgsrc.org>2003-02-12 15:29:24 +0000
commit158f2d7434cfed0dda6dfd76fa852c25def5d06f (patch)
tree88d6304be8c4627e7a9e4d3d0d6ae9cbe2c261e9 /sysutils/pstree/patches
parent615f6a7a0ba73d8143aeabc5ce8bd62d994f56f9 (diff)
downloadpkgsrc-158f2d7434cfed0dda6dfd76fa852c25def5d06f.tar.gz
Make this work on Darwin. Use same ps option as NetBSD's one.
Diffstat (limited to 'sysutils/pstree/patches')
-rw-r--r--sysutils/pstree/patches/patch-aa13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/pstree/patches/patch-aa b/sysutils/pstree/patches/patch-aa
new file mode 100644
index 00000000000..122e906b529
--- /dev/null
+++ b/sysutils/pstree/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2003/02/12 15:29:25 yyamano Exp $
+
+--- pstree.c.orig Mon Dec 17 21:18:02 2001
++++ pstree.c
+@@ -177,7 +177,7 @@
+ # define UID2USER
+ # define PSCMD "ps laxw"
+ # define PSFORMAT "%*s %ld %ld %ld %*d %*g %*d %*d %*21c %*s %[^\n]"
+-#elif defined(__NetBSD__) || defined(__OpenBSD__)
++#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+ /* NetBSD contributed by Gary D. Duzan <gary@wheel.tiac.net> */
+ # define HAS_PGID
+ # define PSCMD "ps -axwwo user,pid,ppid,pgid,command"