From bdcebfe8f5e67d224a0ade61004c08eb2158cfff Mon Sep 17 00:00:00 2001 From: kamil Date: Thu, 22 Jun 2017 23:38:49 +0000 Subject: [PATCH] ksh: Drop support for systems without --- bin/ksh/config.h | 5 +---- bin/ksh/misc.c | 8 +++----- bin/ksh/sh.h | 8 +++----- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/bin/ksh/config.h b/bin/ksh/config.h index ca856b61d382..c68fdb1148ae 100644 --- a/bin/ksh/config.h +++ b/bin/ksh/config.h @@ -1,4 +1,4 @@ -/* $NetBSD: config.h,v 1.28 2017/06/22 23:37:00 kamil Exp $ */ +/* $NetBSD: config.h,v 1.29 2017/06/22 23:38:49 kamil Exp $ */ /* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ @@ -259,9 +259,6 @@ /* Define if you have the header file. */ #define HAVE_DIRENT_H 1 -/* Define if you have the header file. */ -#define HAVE_LIMITS_H 1 - /* Define if you have the header file. */ /* #undef HAVE_NDIR_H */ diff --git a/bin/ksh/misc.c b/bin/ksh/misc.c index d059e975775c..a0585dadb0df 100644 --- a/bin/ksh/misc.c +++ b/bin/ksh/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.21 2017/06/22 14:20:46 kamil Exp $ */ +/* $NetBSD: misc.c,v 1.22 2017/06/22 23:38:49 kamil Exp $ */ /* * Miscellaneous functions @@ -6,15 +6,13 @@ #include #ifndef lint -__RCSID("$NetBSD: misc.c,v 1.21 2017/06/22 14:20:46 kamil Exp $"); +__RCSID("$NetBSD: misc.c,v 1.22 2017/06/22 23:38:49 kamil Exp $"); #endif #include "sh.h" #include /* for FILECHCONV */ -#ifdef HAVE_LIMITS_H -# include -#endif +#include #ifndef UCHAR_MAX # define UCHAR_MAX 0xFF diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h index a35409481502..a7b25646a92b 100644 --- a/bin/ksh/sh.h +++ b/bin/ksh/sh.h @@ -1,10 +1,10 @@ -/* $NetBSD: sh.h,v 1.22 2017/06/22 23:37:00 kamil Exp $ */ +/* $NetBSD: sh.h,v 1.23 2017/06/22 23:38:49 kamil Exp $ */ /* * Public Domain Bourne/Korn shell */ -/* $Id: sh.h,v 1.22 2017/06/22 23:37:00 kamil Exp $ */ +/* $Id: sh.h,v 1.23 2017/06/22 23:38:49 kamil Exp $ */ #include "config.h" /* system and option configuration info */ @@ -61,9 +61,7 @@ /* Some machines (eg, FreeBSD 1.1.5) define CLK_TCK in limits.h * (ksh_limval.h assumes limits has been included, if available) */ -#ifdef HAVE_LIMITS_H -# include -#endif /* HAVE_LIMITS_H */ +#include #include #ifdef NSIG