summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-04-25 15:24:02 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-04-25 15:24:02 +0000
commit0dfce453fddaf3aa0bd6f6fafa69e004b79147d6 (patch)
tree22ffbe90ea174c94577af72e4569233147cd7734
parent86eefc726d29deb1d86ad9b89fd01717f0371f86 (diff)
make bzero() compile again; millert@ ok
-rw-r--r--sys/lib/libkern/memset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/lib/libkern/memset.c b/sys/lib/libkern/memset.c
index b26fcc6c051..b0a34c1ea62 100644
--- a/sys/lib/libkern/memset.c
+++ b/sys/lib/libkern/memset.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: memset.c,v 1.2 2000/04/25 15:24:01 mickey Exp $ */
/* $NetBSD: memset.c,v 1.6 1998/03/27 05:35:47 cgd Exp $ */
/*-
@@ -51,6 +52,7 @@ __RCSID("$NetBSD: memset.c,v 1.6 1998/03/27 05:35:47 cgd Exp $");
#include <string.h>
#include <limits.h>
#else
+#include <sys/systm.h>
#include <lib/libkern/libkern.h>
#include <machine/limits.h>
#endif
@@ -80,7 +82,9 @@ memset(dst0, c0, length)
#endif
{
size_t t;
+#ifndef BZERO
u_int c;
+#endif
u_char *dst;
dst = dst0;