summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strncmp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-01 12:57:37 +0000
committerderaadt <deraadt@openbsd.org>1996-05-01 12:57:37 +0000
commit0cb9f57f48f50d812a2191862c250544a86d6d03 (patch)
tree27fb75106ca694c30a70c0f2b440c4fd15e99b45 /lib/libc/string/strncmp.c
parentfrom netbsd: (diff)
downloadwireguard-openbsd-0cb9f57f48f50d812a2191862c250544a86d6d03.tar.xz
wireguard-openbsd-0cb9f57f48f50d812a2191862c250544a86d6d03.zip
switch on _KERNEL to load proper include file
Diffstat (limited to 'lib/libc/string/strncmp.c')
-rw-r--r--lib/libc/string/strncmp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/string/strncmp.c b/lib/libc/string/strncmp.c
index 0638d4dcf2a..43217391d00 100644
--- a/lib/libc/string/strncmp.c
+++ b/lib/libc/string/strncmp.c
@@ -33,10 +33,14 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strncmp.c 5.6 (Berkeley) 1/26/91";*/
-static char *rcsid = "$Id: strncmp.c,v 1.1.1.1 1995/10/18 08:42:23 deraadt Exp $";
+static char *rcsid = "$Id: strncmp.c,v 1.2 1996/05/01 12:57:54 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
+#ifndef _KERNEL
#include <string.h>
+#else
+#include <lib/libkern/libkern.h>
+#endif
int
strncmp(s1, s2, n)