Module Name: src Committed By: kamil Date: Thu Jun 22 23:38:49 UTC 2017
Modified Files: src/bin/ksh: config.h misc.c sh.h Log Message: ksh: Drop support for systems without <limits.h> To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/bin/ksh/config.h cvs rdiff -u -r1.21 -r1.22 src/bin/ksh/misc.c cvs rdiff -u -r1.22 -r1.23 src/bin/ksh/sh.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/ksh/config.h diff -u src/bin/ksh/config.h:1.28 src/bin/ksh/config.h:1.29 --- src/bin/ksh/config.h:1.28 Thu Jun 22 23:37:00 2017 +++ src/bin/ksh/config.h Thu Jun 22 23:38:49 2017 @@ -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 <dirent.h> header file. */ #define HAVE_DIRENT_H 1 -/* Define if you have the <limits.h> header file. */ -#define HAVE_LIMITS_H 1 - /* Define if you have the <ndir.h> header file. */ /* #undef HAVE_NDIR_H */ Index: src/bin/ksh/misc.c diff -u src/bin/ksh/misc.c:1.21 src/bin/ksh/misc.c:1.22 --- src/bin/ksh/misc.c:1.21 Thu Jun 22 14:20:46 2017 +++ src/bin/ksh/misc.c Thu Jun 22 23:38:49 2017 @@ -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 <sys/cdefs.h> #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 <ctype.h> /* for FILECHCONV */ -#ifdef HAVE_LIMITS_H -# include <limits.h> -#endif +#include <limits.h> #ifndef UCHAR_MAX # define UCHAR_MAX 0xFF Index: src/bin/ksh/sh.h diff -u src/bin/ksh/sh.h:1.22 src/bin/ksh/sh.h:1.23 --- src/bin/ksh/sh.h:1.22 Thu Jun 22 23:37:00 2017 +++ src/bin/ksh/sh.h Thu Jun 22 23:38:49 2017 @@ -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 <limits.h> -#endif /* HAVE_LIMITS_H */ +#include <limits.h> #include <signal.h> #ifdef NSIG