summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1998-02-22 09:12:57 +0000
committermycroft <mycroft@NetBSD.org>1998-02-22 09:12:57 +0000
commitd0daf2d571e36c3cd287dcf208db95ca8ca876eb (patch)
treeaff747346b919f4a9dc8bf65009c40f1968a8171 /lib/libc/string
parent4477c62148acdd930b2f477eeb22016ebcc370ba (diff)
Add the same protection as other files have for _KERNEL, which at least works
for the kernel.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/bcopy.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/string/bcopy.c b/lib/libc/string/bcopy.c
index 7641aa47d8d..a748f912dbc 100644
--- a/lib/libc/string/bcopy.c
+++ b/lib/libc/string/bcopy.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bcopy.c,v 1.8 1998/02/03 18:49:10 perry Exp $ */
+/* $NetBSD: bcopy.c,v 1.9 1998/02/22 09:12:57 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -41,11 +41,15 @@
#if 0
static char sccsid[] = "@(#)bcopy.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: bcopy.c,v 1.8 1998/02/03 18:49:10 perry Exp $");
+__RCSID("$NetBSD: bcopy.c,v 1.9 1998/02/22 09:12:57 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifndef _KERNEL
#include <string.h>
+#else
+#include <lib/libkern/libkern.h>
+#endif
/*
* sizeof(word) MUST BE A POWER OF TWO