diff options
author | 1996-05-01 15:18:44 +0000 | |
---|---|---|
committer | 1996-05-01 15:18:44 +0000 | |
commit | cf4fa783b43670546879db49c8201247cc03bfe8 (patch) | |
tree | d2a14552b2b309b31b09b0c093d1a0e860372125 /sys/lib/libkern/strcpy.c | |
parent | sparc needs memset, compiler calls it automatically (diff) | |
download | wireguard-openbsd-cf4fa783b43670546879db49c8201247cc03bfe8.tar.xz wireguard-openbsd-cf4fa783b43670546879db49c8201247cc03bfe8.zip |
switch on _KERNEL to pull in correct headers
Diffstat (limited to 'sys/lib/libkern/strcpy.c')
-rw-r--r-- | sys/lib/libkern/strcpy.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/lib/libkern/strcpy.c b/sys/lib/libkern/strcpy.c index d08b319e67b..cfeff18e2b2 100644 --- a/sys/lib/libkern/strcpy.c +++ b/sys/lib/libkern/strcpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strcpy.c,v 1.2 1996/04/19 16:09:39 niklas Exp $ */ +/* $OpenBSD: strcpy.c,v 1.3 1996/05/01 15:18:50 deraadt Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -35,10 +35,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/ -static char *rcsid = "$OpenBSD: strcpy.c,v 1.2 1996/04/19 16:09:39 niklas Exp $"; +static char *rcsid = "$OpenBSD: strcpy.c,v 1.3 1996/05/01 15:18:50 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif char * strcpy(to, from) |