summaryrefslogtreecommitdiff
path: root/common/lib/libc/string
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-12-27 20:26:53 +0000
committerchristos <christos@NetBSD.org>2013-12-27 20:26:53 +0000
commit2d40505d5c357ff347753fdc2c970f168dd9a3e4 (patch)
tree593a72d1397f792977760e565fe8e4a4e21b7703 /common/lib/libc/string
parenta21d357aad32f214d185aba399a14298ce9a01a9 (diff)
make it kernel friendly.
Diffstat (limited to 'common/lib/libc/string')
-rw-r--r--common/lib/libc/string/strncat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/lib/libc/string/strncat.c b/common/lib/libc/string/strncat.c
index ee5a83b6855..f0de7e3703d 100644
--- a/common/lib/libc/string/strncat.c
+++ b/common/lib/libc/string/strncat.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strncat.c,v 1.1 2013/12/27 20:24:45 christos Exp $ */
+/* $NetBSD: strncat.c,v 1.2 2013/12/27 20:26:53 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,12 +37,16 @@
#if 0
static char sccsid[] = "@(#)strncat.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strncat.c,v 1.1 2013/12/27 20:24:45 christos Exp $");
+__RCSID("$NetBSD: strncat.c,v 1.2 2013/12/27 20:26:53 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <assert.h>
#include <string.h>
+#else
+#include <lib/libkern/libkern.h>
+#endif
#ifdef _FORTIFY_SOURCE
#undef strncat