diff --git a/sys/i386/include/random.h b/sys/i386/include/random.h index 73957b961d7..8d91cbf028d 100644 --- a/sys/i386/include/random.h +++ b/sys/i386/include/random.h @@ -1,7 +1,7 @@ /* * random.h -- A strong random number generator * - * $Id: random.h,v 1.4 1996/01/30 22:54:53 mpp Exp $ + * $Id: random.h,v 1.5 1996/06/14 11:01:04 asami Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -48,29 +48,27 @@ */ #ifndef _MACHINE_RANDOM_H_ -#define _MACHINE_RANDOM_H_ 1 +#define _MACHINE_RANDOM_H_ -#if defined(KERNEL) -#ifdef PC98 -#include -#include -#else -#include -#include -#endif -#endif -#include +#include #define MEM_SETIRQ _IOW('r', 1, u_int16_t) /* set interrupt */ #define MEM_CLEARIRQ _IOW('r', 2, u_int16_t) /* clear interrupt */ #define MEM_RETURNIRQ _IOR('r', 3, u_int16_t) /* return interrupt */ -#if defined(KERNEL) +#ifdef KERNEL + +/* XXX include from the wrong place(s) for inthand2_t. */ +#ifdef PC98 +#include +#else +#include +#endif /* Interrupts to be used in the randomizing process */ -extern inthand2_t *sec_intr_handler[ICU_LEN]; -extern int sec_intr_unit[ICU_LEN]; +extern inthand2_t *sec_intr_handler[]; +extern int sec_intr_unit[]; /* Exported functions */ @@ -90,6 +88,6 @@ u_int read_random_unlimited(char *buf, u_int size); u_int write_random(const char *buf, u_int nbytes); #endif -#endif +#endif /* KERNEL */ -#endif +#endif /* !_MACHINE_RANDOM_H_ */ diff --git a/sys/i386/isa/random_machdep.c b/sys/i386/isa/random_machdep.c index 8944a9dcc09..2b713baa265 100644 --- a/sys/i386/isa/random_machdep.c +++ b/sys/i386/isa/random_machdep.c @@ -1,7 +1,7 @@ /* * random_machdep.c -- A strong random number generator * - * $Id: random_machdep.c,v 1.7 1996/06/08 08:18:00 bde Exp $ + * $Id: random_machdep.c,v 1.8 1996/06/12 05:03:48 gpalmer Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -48,6 +48,7 @@ #include #include +#include #include #include #include diff --git a/sys/kern/kern_random.c b/sys/kern/kern_random.c index 8944a9dcc09..2b713baa265 100644 --- a/sys/kern/kern_random.c +++ b/sys/kern/kern_random.c @@ -1,7 +1,7 @@ /* * random_machdep.c -- A strong random number generator * - * $Id: random_machdep.c,v 1.7 1996/06/08 08:18:00 bde Exp $ + * $Id: random_machdep.c,v 1.8 1996/06/12 05:03:48 gpalmer Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -48,6 +48,7 @@ #include #include +#include #include #include #include diff --git a/sys/sys/random.h b/sys/sys/random.h index 73957b961d7..8d91cbf028d 100644 --- a/sys/sys/random.h +++ b/sys/sys/random.h @@ -1,7 +1,7 @@ /* * random.h -- A strong random number generator * - * $Id: random.h,v 1.4 1996/01/30 22:54:53 mpp Exp $ + * $Id: random.h,v 1.5 1996/06/14 11:01:04 asami Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -48,29 +48,27 @@ */ #ifndef _MACHINE_RANDOM_H_ -#define _MACHINE_RANDOM_H_ 1 +#define _MACHINE_RANDOM_H_ -#if defined(KERNEL) -#ifdef PC98 -#include -#include -#else -#include -#include -#endif -#endif -#include +#include #define MEM_SETIRQ _IOW('r', 1, u_int16_t) /* set interrupt */ #define MEM_CLEARIRQ _IOW('r', 2, u_int16_t) /* clear interrupt */ #define MEM_RETURNIRQ _IOR('r', 3, u_int16_t) /* return interrupt */ -#if defined(KERNEL) +#ifdef KERNEL + +/* XXX include from the wrong place(s) for inthand2_t. */ +#ifdef PC98 +#include +#else +#include +#endif /* Interrupts to be used in the randomizing process */ -extern inthand2_t *sec_intr_handler[ICU_LEN]; -extern int sec_intr_unit[ICU_LEN]; +extern inthand2_t *sec_intr_handler[]; +extern int sec_intr_unit[]; /* Exported functions */ @@ -90,6 +88,6 @@ u_int read_random_unlimited(char *buf, u_int size); u_int write_random(const char *buf, u_int nbytes); #endif -#endif +#endif /* KERNEL */ -#endif +#endif /* !_MACHINE_RANDOM_H_ */