From a7909ab462c395e8a671147fc801b7426b1273f5 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 6 Aug 2011 19:53:24 +0000 Subject: is standard, so just use it instead of fiddling about with ifdefs for long-dead systems. While here, remove union wait. --- hack/hack.pager.c | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'hack/hack.pager.c') diff --git a/hack/hack.pager.c b/hack/hack.pager.c index dca670d8..2043b919 100644 --- a/hack/hack.pager.c +++ b/hack/hack.pager.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.pager.c,v 1.15 2011/05/23 22:53:25 joerg Exp $ */ +/* $NetBSD: hack.pager.c,v 1.16 2011/08/06 19:53:24 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.pager.c,v 1.15 2011/05/23 22:53:25 joerg Exp $"); +__RCSID("$NetBSD: hack.pager.c,v 1.16 2011/08/06 19:53:24 dholland Exp $"); #endif /* not lint */ /* This file contains the command routine dowhatis() and a pager. */ @@ -73,6 +73,7 @@ __RCSID("$NetBSD: hack.pager.c,v 1.15 2011/05/23 22:53:25 joerg Exp $"); */ #include +#include #include #include #include @@ -438,25 +439,6 @@ dosh(void) } #endif /* SHELL */ -#ifdef NOWAITINCLUDE -union wait { /* used only for the cast (union wait *) 0 */ - int w_status; - struct { - unsigned short w_Termsig:7; - unsigned short w_Coredump:1; - unsigned short w_Retcode:8; - } w_T; -}; - -#else - -#ifdef BSD -#include -#else -#include -#endif /* BSD */ -#endif /* NOWAITINCLUDE */ - static int child(int wt) { -- cgit v1.2.3