From 197db38af8b34390a69c6d88a6316bb30df40dfc Mon Sep 17 00:00:00 2001 From: mmcc Date: Mon, 19 Oct 2015 14:03:22 +0000 Subject: Move limits.h include from sh.h to the files that actually need it. No binary change. ok nicm@ --- bin/ksh/expr.c | 3 ++- bin/ksh/jobs.c | 4 +++- bin/ksh/misc.c | 3 ++- bin/ksh/sh.h | 3 +-- bin/ksh/shf.c | 4 +++- bin/ksh/table.c | 4 +++- bin/ksh/var.c | 3 ++- 7 files changed, 16 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/ksh/expr.c b/bin/ksh/expr.c index 52e9965fb70..d7bf29f9ec5 100644 --- a/bin/ksh/expr.c +++ b/bin/ksh/expr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: expr.c,v 1.29 2015/10/19 02:15:45 mmcc Exp $ */ +/* $OpenBSD: expr.c,v 1.30 2015/10/19 14:03:21 mmcc Exp $ */ /* * Korn expression evaluation @@ -8,6 +8,7 @@ */ #include +#include #include "sh.h" diff --git a/bin/ksh/jobs.c b/bin/ksh/jobs.c index 15900b58d76..a9292300662 100644 --- a/bin/ksh/jobs.c +++ b/bin/ksh/jobs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: jobs.c,v 1.48 2015/10/19 02:15:45 mmcc Exp $ */ +/* $OpenBSD: jobs.c,v 1.49 2015/10/19 14:03:21 mmcc Exp $ */ /* * Process and job control @@ -20,6 +20,8 @@ #include #include +#include + #include "sh.h" #include "tty.h" diff --git a/bin/ksh/misc.c b/bin/ksh/misc.c index a9eecde9c63..4d9af6b6929 100644 --- a/bin/ksh/misc.c +++ b/bin/ksh/misc.c @@ -1,10 +1,11 @@ -/* $OpenBSD: misc.c,v 1.47 2015/10/19 02:15:45 mmcc Exp $ */ +/* $OpenBSD: misc.c,v 1.48 2015/10/19 14:03:21 mmcc Exp $ */ /* * Miscellaneous functions */ #include +#include #include "sh.h" #include "charclass.h" diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h index f2e59ff0a0c..23685674894 100644 --- a/bin/ksh/sh.h +++ b/bin/ksh/sh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sh.h,v 1.41 2015/10/19 14:01:37 mmcc Exp $ */ +/* $OpenBSD: sh.h,v 1.42 2015/10/19 14:03:21 mmcc Exp $ */ /* * Public Domain Bourne/Korn shell @@ -22,7 +22,6 @@ #include #include -#include #include diff --git a/bin/ksh/shf.c b/bin/ksh/shf.c index f7d228596a3..2d032eb81c7 100644 --- a/bin/ksh/shf.c +++ b/bin/ksh/shf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shf.c,v 1.23 2015/10/19 02:15:45 mmcc Exp $ */ +/* $OpenBSD: shf.c,v 1.24 2015/10/19 14:03:21 mmcc Exp $ */ /* * Shell file I/O routines @@ -6,6 +6,8 @@ #include +#include + #include "sh.h" /* flags to shf_emptybuf() */ diff --git a/bin/ksh/table.c b/bin/ksh/table.c index 2af57b41d19..d22eca066a2 100644 --- a/bin/ksh/table.c +++ b/bin/ksh/table.c @@ -1,9 +1,11 @@ -/* $OpenBSD: table.c,v 1.19 2015/10/05 23:26:58 nicm Exp $ */ +/* $OpenBSD: table.c,v 1.20 2015/10/19 14:03:21 mmcc Exp $ */ /* * dynamic hashed associative table for commands and variables */ +#include + #include "sh.h" #define INIT_TBLS 8 /* initial table size (power of 2) */ diff --git a/bin/ksh/var.c b/bin/ksh/var.c index 36853af83a2..d1776717599 100644 --- a/bin/ksh/var.c +++ b/bin/ksh/var.c @@ -1,8 +1,9 @@ -/* $OpenBSD: var.c,v 1.51 2015/10/19 02:15:45 mmcc Exp $ */ +/* $OpenBSD: var.c,v 1.52 2015/10/19 14:03:21 mmcc Exp $ */ #include #include +#include #include #include "sh.h" -- cgit v1.2.3