Module Name:    src
Committed By:   christos
Date:           Fri Dec 27 20:26:53 UTC 2013

Modified Files:
        src/common/lib/libc/string: strncat.c

Log Message:
make it kernel friendly.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/string/strncat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libc/string/strncat.c
diff -u src/common/lib/libc/string/strncat.c:1.1 src/common/lib/libc/string/strncat.c:1.2
--- src/common/lib/libc/string/strncat.c:1.1	Fri Dec 27 15:24:45 2013
+++ src/common/lib/libc/string/strncat.c	Fri Dec 27 15:26:53 2013
@@ -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

Reply via email to