Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ps Add a fallback definition of LSDEAD in ps(1)



details:   https://anonhg.NetBSD.org/src/rev/c5a787f06c37
branches:  trunk
changeset: 457324:c5a787f06c37
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 19 21:25:50 2019 +0000

description:
Add a fallback definition of LSDEAD in ps(1)

The symbol is no longer available in headers.

Requested by <mrg>

diffstat:

 bin/ps/print.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r dfb9c84cb591 -r c5a787f06c37 bin/ps/print.c
--- a/bin/ps/print.c    Wed Jun 19 20:20:52 2019 +0000
+++ b/bin/ps/print.c    Wed Jun 19 21:25:50 2019 +0000
@@ -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 @@
 
 #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 @@
                break;
 
        case LSZOMB:
-#ifdef LSDEAD
        case LSDEAD:
-#endif
                *cp = 'Z';
                break;
 



Home | Main Index | Thread Index | Old Index