diff options
author | tnn <tnn@pkgsrc.org> | 2020-08-18 05:12:55 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2020-08-18 05:12:55 +0000 |
commit | bf07ed594443567e2f75f199eee0233f4af0f040 (patch) | |
tree | 8185532ac261045c29227c9868fb20a0f9db84c1 /sysutils/top | |
parent | dfca555d03c7d36877f4012095a932b11cec5fc9 (diff) | |
download | pkgsrc-bf07ed594443567e2f75f199eee0233f4af0f040.tar.gz |
top: fix build on NetBSD with sys/lwp.h >= 1.185 (LSDEAD removal)
Diffstat (limited to 'sysutils/top')
-rw-r--r-- | sysutils/top/distinfo | 4 | ||||
-rw-r--r-- | sysutils/top/patches/patch-an | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/sysutils/top/distinfo b/sysutils/top/distinfo index 762386b2058..3d7ecda4bf3 100644 --- a/sysutils/top/distinfo +++ b/sysutils/top/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.14 2015/11/04 01:32:33 agc Exp $ +$NetBSD: distinfo,v 1.15 2020/08/18 05:12:55 tnn Exp $ SHA1 (top-3.6.1.tar.gz) = 2578e271a9eca768e98d16cccf613d538c6a4f81 RMD160 (top-3.6.1.tar.gz) = adcfe9065cf17ac0037cc68fbb98b2ba4c5f2a38 @@ -10,4 +10,4 @@ SHA1 (patch-aj) = 37e32ae734213c72ecd2d1018a0586b6db5ba848 SHA1 (patch-ak) = dc0c5295df0dd090ffca730d0e58243d0e5c4884 SHA1 (patch-al) = 97d474be72591c415cf2978422753b5533109c48 SHA1 (patch-am) = 54cb262e37f0f281aa49bc30f9df92d9577431a1 -SHA1 (patch-an) = b7e220195537349754ae8552f556ba64c8494fc2 +SHA1 (patch-an) = 028562347998a4f18237cccc3cc1fe9647848c83 diff --git a/sysutils/top/patches/patch-an b/sysutils/top/patches/patch-an index 44950d8ee59..78d011b5f51 100644 --- a/sysutils/top/patches/patch-an +++ b/sysutils/top/patches/patch-an @@ -1,8 +1,8 @@ -$NetBSD: patch-an,v 1.3 2010/12/27 13:15:05 obache Exp $ +$NetBSD: patch-an,v 1.4 2020/08/18 05:12:55 tnn Exp $ ---- machine/m_netbsd20.c.orig 2004-07-12 09:03:09.000000000 +0200 +--- machine/m_netbsd20.c.orig 2020-08-18 05:08:35.740015522 +0000 +++ machine/m_netbsd20.c -@@ -0,0 +1,895 @@ +@@ -0,0 +1,898 @@ +/* NetBSD: m_netbsd15.c,v 1.22 2004/02/13 11:36:24 wiz Exp */ + +/* @@ -488,7 +488,10 @@ $NetBSD: patch-an,v 1.3 2010/12/27 13:15:05 obache Exp $ + if (pp->p_stat != 0 && (show_system || ((pp->p_flag & P_SYSTEM) == 0))) { + total_procs++; + process_states[(unsigned char) pp->p_stat]++; -+ if (pp->p_stat != LSZOMB && pp->p_stat != LSDEAD && ++ if (pp->p_stat != LSZOMB && ++#ifdef LSDEAD ++ pp->p_stat != LSDEAD && ++#endif + (show_idle || (pp->p_pctcpu != 0) || + (pp->p_stat == LSRUN || pp->p_stat == LSONPROC)) && + (!show_uid || pp->p_ruid == (uid_t)sel->uid)) { |