summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/strncpy.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-01 15:18:44 +0000
committerderaadt <deraadt@openbsd.org>1996-05-01 15:18:44 +0000
commitcf4fa783b43670546879db49c8201247cc03bfe8 (patch)
treed2a14552b2b309b31b09b0c093d1a0e860372125 /sys/lib/libkern/strncpy.c
parentsparc needs memset, compiler calls it automatically (diff)
downloadwireguard-openbsd-cf4fa783b43670546879db49c8201247cc03bfe8.tar.xz
wireguard-openbsd-cf4fa783b43670546879db49c8201247cc03bfe8.zip
switch on _KERNEL to pull in correct headers
Diffstat (limited to 'sys/lib/libkern/strncpy.c')
-rw-r--r--sys/lib/libkern/strncpy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/lib/libkern/strncpy.c b/sys/lib/libkern/strncpy.c
index 93be91a529b..5279942a2be 100644
--- a/sys/lib/libkern/strncpy.c
+++ b/sys/lib/libkern/strncpy.c
@@ -36,10 +36,14 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strncpy.c 5.6 (Berkeley) 1/26/91";*/
-static char *rcsid = "$Id: strncpy.c,v 1.1.1.1 1995/10/18 08:52:50 deraadt Exp $";
+static char *rcsid = "$Id: strncpy.c,v 1.2 1996/05/01 15:18:53 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
+#ifndef _KERNEL
#include <string.h>
+#else
+#include <lib/libkern/libkern.h>
+#endif
/*
* Copy src to dst, truncating or null-padding to always copy n bytes.