make it kernel friendly.
This commit is contained in:
parent
5e0bd251ff
commit
96602b9efa
|
@ -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
|
* Copyright (c) 1990, 1993
|
||||||
|
@ -37,12 +37,16 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)strncat.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)strncat.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#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
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
|
#if !defined(_KERNEL) && !defined(_STANDALONE)
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#else
|
||||||
|
#include <lib/libkern/libkern.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _FORTIFY_SOURCE
|
#ifdef _FORTIFY_SOURCE
|
||||||
#undef strncat
|
#undef strncat
|
||||||
|
|
Loading…
Reference in New Issue