Module Name: src Committed By: kamil Date: Wed Jun 19 21:25:51 UTC 2019
Modified Files: src/bin/ps: print.c Log Message: Add a fallback definition of LSDEAD in ps(1) The symbol is no longer available in headers. Requested by <mrg> To generate a diff of this commit: cvs rdiff -u -r1.131 -r1.132 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/ps/print.c diff -u src/bin/ps/print.c:1.131 src/bin/ps/print.c:1.132 --- src/bin/ps/print.c:1.131 Tue Jun 18 02:23:29 2019 +++ src/bin/ps/print.c Wed Jun 19 21:25:50 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.131 2019/06/18 02:23:29 kamil Exp $ */ +/* $NetBSD: print.c,v 1.132 2019/06/19 21:25:50 kamil Exp $ */ /* * Copyright (c) 2000, 2007 The NetBSD Foundation, Inc. @@ -63,7 +63,7 @@ #if 0 static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94"; #else -__RCSID("$NetBSD: print.c,v 1.131 2019/06/18 02:23:29 kamil Exp $"); +__RCSID("$NetBSD: print.c,v 1.132 2019/06/19 21:25:50 kamil Exp $"); #endif #endif /* not lint */ @@ -104,6 +104,11 @@ static time_t now; #define min(a,b) ((a) <= (b) ? (a) : (b)) +/* pre-NetBSD 5.x support. */ +#ifndef LSDEAD +#define LSDEAD 6 +#endif + static int iwidth(u_int64_t v) { @@ -586,9 +591,7 @@ lstate(struct pinfo *pi, VARENT *ve, enu break; case LSZOMB: -#ifdef LSDEAD case LSDEAD: -#endif *cp = 'Z'; break;