Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libkern fix build for bootloaders (no /usr/include/s...



details:   https://anonhg.NetBSD.org/src/rev/4fc9dc2cce87
branches:  trunk
changeset: 552759:4fc9dc2cce87
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Oct 02 10:39:27 2003 +0000

description:
fix build for bootloaders (no /usr/include/sys/kernel.h any more).

diffstat:

 sys/lib/libkern/arc4random.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 36f891d70e31 -r 4fc9dc2cce87 sys/lib/libkern/arc4random.c
--- a/sys/lib/libkern/arc4random.c      Thu Oct 02 10:01:11 2003 +0000
+++ b/sys/lib/libkern/arc4random.c      Thu Oct 02 10:39:27 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arc4random.c,v 1.10 2003/08/20 13:32:33 itojun Exp $   */
+/*     $NetBSD: arc4random.c,v 1.11 2003/10/02 10:39:27 itojun Exp $   */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -57,7 +57,9 @@
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/param.h>
+#ifdef _KERNEL
 #include <sys/kernel.h>
+#endif
 #include <sys/systm.h>
 
 #include <lib/libkern/libkern.h>
@@ -75,6 +77,9 @@
 static int arc4_numruns = 0;
 static u_int8_t arc4_sbox[256];
 static struct timeval arc4_tv_nextreseed;
+#ifndef _KERNEL
+extern struct timeval mono_time;
+#endif
 
 static inline u_int8_t arc4_randbyte(void);
 



Home | Main Index | Thread Index | Old Index