#include <machine/limits.h> explicitly in the few places that it is required.

This commit is contained in:
Bruce Evans 1997-08-21 20:33:42 +00:00
parent d7fde192a6
commit b1037dcd53
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28551
18 changed files with 45 additions and 18 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.8 1997/08/21 04:51:12 smp Exp smp $
* $Id: clock.c,v 1.99 1997/08/21 05:08:07 fsmp Exp $
*/
/*
@ -64,6 +64,7 @@
#include <machine/cpu.h>
#include <machine/frame.h>
#include <machine/ipl.h>
#include <machine/limits.h>
#ifdef APIC_IO
#include <machine/smp.h>
#endif /* APIC_IO */

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.8 1997/08/21 04:51:12 smp Exp smp $
* $Id: clock.c,v 1.99 1997/08/21 05:08:07 fsmp Exp $
*/
/*
@ -64,6 +64,7 @@
#include <machine/cpu.h>
#include <machine/frame.h>
#include <machine/ipl.h>
#include <machine/limits.h>
#ifdef APIC_IO
#include <machine/smp.h>
#endif /* APIC_IO */

View File

@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: eisaconf.c,v 1.28 1997/07/20 06:31:09 bde Exp $
* $Id: eisaconf.c,v 1.29 1997/08/21 07:36:43 fsmp Exp $
*/
#include "opt_eisa.h"
@ -38,6 +38,8 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <machine/limits.h>
#include <i386/eisa/eisaconf.h>
#include <i386/isa/icu.h> /* Hmmm. Interrupt stuff? */

View File

@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: eisaconf.c,v 1.28 1997/07/20 06:31:09 bde Exp $
* $Id: eisaconf.c,v 1.29 1997/08/21 07:36:43 fsmp Exp $
*/
#include "opt_eisa.h"
@ -38,6 +38,8 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <machine/limits.h>
#include <i386/eisa/eisaconf.h>
#include <i386/isa/icu.h> /* Hmmm. Interrupt stuff? */

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.8 1997/08/21 04:51:12 smp Exp smp $
* $Id: clock.c,v 1.99 1997/08/21 05:08:07 fsmp Exp $
*/
/*
@ -64,6 +64,7 @@
#include <machine/cpu.h>
#include <machine/frame.h>
#include <machine/ipl.h>
#include <machine/limits.h>
#ifdef APIC_IO
#include <machine/smp.h>
#endif /* APIC_IO */

View File

@ -46,7 +46,7 @@
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
** $Id: userconfig.c,v 1.87 1997/08/11 09:44:57 jkh Exp $
** $Id: userconfig.c,v 1.88 1997/08/16 14:19:43 msmith Exp $
**/
/**
@ -115,6 +115,7 @@
#include <machine/cons.h>
#include <machine/md_var.h>
#include <machine/limits.h>
#include <i386/isa/isa_device.h>
@ -2359,7 +2360,7 @@ visuserconfig(void)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: userconfig.c,v 1.87 1997/08/11 09:44:57 jkh Exp $
* $Id: userconfig.c,v 1.88 1997/08/16 14:19:43 msmith Exp $
*/
#include "scbus.h"

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.8 1997/08/21 04:51:12 smp Exp smp $
* $Id: clock.c,v 1.99 1997/08/21 05:08:07 fsmp Exp $
*/
/*
@ -64,6 +64,7 @@
#include <machine/cpu.h>
#include <machine/frame.h>
#include <machine/ipl.h>
#include <machine/limits.h>
#ifdef APIC_IO
#include <machine/smp.h>
#endif /* APIC_IO */

View File

@ -83,6 +83,10 @@
#ifdef __FreeBSD__
#include <i386/isa/qcamreg.h>
#include <i386/isa/qcamdefs.h>
#include <machine/limits.h> /* XXX for bogus UCHAR_MAX checks -
* the types are all u_char so the
* tests are null */
#else
#include "qcamreg.h"
#include "qcamdefs.h"

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.8 1997/08/21 04:51:12 smp Exp smp $
* $Id: clock.c,v 1.99 1997/08/21 05:08:07 fsmp Exp $
*/
/*
@ -64,6 +64,7 @@
#include <machine/cpu.h>
#include <machine/frame.h>
#include <machine/ipl.h>
#include <machine/limits.h>
#ifdef APIC_IO
#include <machine/smp.h>
#endif /* APIC_IO */

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
* $Id: kern_clock.c,v 1.36 1997/04/26 11:46:12 peter Exp $
* $Id: kern_clock.c,v 1.37 1997/06/24 18:20:47 jhay Exp $
*/
/* Portions of this software are covered by the following: */
@ -78,6 +78,7 @@
#include <machine/cpu.h>
#define CLOCK_HAIR /* XXX */
#include <machine/clock.h>
#include <machine/limits.h>
#ifdef GPROF
#include <sys/gmon.h>

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_exit.c 8.7 (Berkeley) 2/12/94
* $Id: kern_exit.c,v 1.50 1997/07/06 02:40:40 dyson Exp $
* $Id: kern_exit.c,v 1.51 1997/07/17 04:49:27 dyson Exp $
*/
#include "opt_ktrace.h"
@ -69,6 +69,7 @@
#include <machine/reg.h>
#include <machine/psl.h>
#endif
#include <machine/limits.h> /* for UCHAR_MAX = typeof(p_priority)_MAX */
#include <vm/vm.h>
#include <vm/vm_param.h>

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_synch.c 8.9 (Berkeley) 5/19/95
* $Id: kern_synch.c,v 1.35 1997/08/16 19:07:20 wollman Exp $
* $Id: kern_synch.c,v 1.36 1997/08/18 01:34:38 julian Exp $
*/
#include "opt_ktrace.h"
@ -60,6 +60,7 @@
#endif
#include <machine/cpu.h>
#include <machine/limits.h> /* for UCHAR_MAX = typeof(p_priority)_MAX */
static void rqinit __P((void *));
SYSINIT(runqueue, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, rqinit, NULL)

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
* $Id: kern_clock.c,v 1.36 1997/04/26 11:46:12 peter Exp $
* $Id: kern_clock.c,v 1.37 1997/06/24 18:20:47 jhay Exp $
*/
/* Portions of this software are covered by the following: */
@ -78,6 +78,7 @@
#include <machine/cpu.h>
#define CLOCK_HAIR /* XXX */
#include <machine/clock.h>
#include <machine/limits.h>
#ifdef GPROF
#include <sys/gmon.h>

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
* $Id: kern_clock.c,v 1.36 1997/04/26 11:46:12 peter Exp $
* $Id: kern_clock.c,v 1.37 1997/06/24 18:20:47 jhay Exp $
*/
/* Portions of this software are covered by the following: */
@ -78,6 +78,7 @@
#include <machine/cpu.h>
#define CLOCK_HAIR /* XXX */
#include <machine/clock.h>
#include <machine/limits.h>
#ifdef GPROF
#include <sys/gmon.h>

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)uipc_socket.c 8.3 (Berkeley) 4/15/94
* $Id: uipc_socket.c,v 1.27 1997/06/27 15:28:54 peter Exp $
* $Id: uipc_socket.c,v 1.28 1997/08/16 19:15:04 wollman Exp $
*/
#include <sys/param.h>
@ -50,6 +50,8 @@
#include <sys/signalvar.h>
#include <sys/sysctl.h>
#include <machine/limits.h>
static int somaxconn = SOMAXCONN;
SYSCTL_INT(_kern_ipc, KIPC_SOMAXCONN, somaxconn, CTLFLAG_RW, &somaxconn,
0, "");

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
* $Id: vfs_subr.c,v 1.90 1997/08/04 07:43:28 dyson Exp $
* $Id: vfs_subr.c,v 1.91 1997/08/16 19:15:08 wollman Exp $
*/
/*
@ -63,6 +63,8 @@
#include <sys/mbuf.h>
#include <sys/dirent.h>
#include <machine/limits.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_object.h>

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
* $Id: vfs_subr.c,v 1.90 1997/08/04 07:43:28 dyson Exp $
* $Id: vfs_subr.c,v 1.91 1997/08/16 19:15:08 wollman Exp $
*/
/*
@ -63,6 +63,8 @@
#include <sys/mbuf.h>
#include <sys/dirent.h>
#include <machine/limits.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_object.h>

View File

@ -59,7 +59,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: vm_glue.c,v 1.63 1997/04/13 01:48:34 dyson Exp $
* $Id: vm_glue.c,v 1.64 1997/04/14 03:40:42 peter Exp $
*/
#include "opt_rlimit.h"
@ -76,6 +76,8 @@
#include <sys/dkstat.h>
#include <sys/unistd.h>
#include <machine/limits.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_inherit.h>