Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/string make it kernel friendly.
details: https://anonhg.NetBSD.org/src/rev/73b458775a3b
branches: trunk
changeset: 325519:73b458775a3b
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 27 20:26:53 2013 +0000
description:
make it kernel friendly.
diffstat:
common/lib/libc/string/strncat.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r ab2c35fbda14 -r 73b458775a3b common/lib/libc/string/strncat.c
--- a/common/lib/libc/string/strncat.c Fri Dec 27 20:25:33 2013 +0000
+++ b/common/lib/libc/string/strncat.c Fri Dec 27 20:26:53 2013 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index