handle old gcc
This commit is contained in:
parent
6c5b63c739
commit
eb33cee45c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: stpcpy_chk.c,v 1.1 2013/11/06 16:31:08 christos Exp $ */
|
||||
/* $NetBSD: stpcpy_chk.c,v 1.2 2013/11/06 16:58:58 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2013 The NetBSD Foundation, Inc.
|
||||
@ -29,7 +29,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: stpcpy_chk.c,v 1.1 2013/11/06 16:31:08 christos Exp $");
|
||||
__RCSID("$NetBSD: stpcpy_chk.c,v 1.2 2013/11/06 16:58:58 christos Exp $");
|
||||
|
||||
/*LINTLIBRARY*/
|
||||
|
||||
@ -38,6 +38,10 @@ __RCSID("$NetBSD: stpcpy_chk.c,v 1.1 2013/11/06 16:31:08 christos Exp $");
|
||||
|
||||
#undef memcpy
|
||||
|
||||
#if !__GNUC_PREREQ__(4, 8)
|
||||
char *__stpcpy_chk(char * __restrict, const char * __restrict, size_t);
|
||||
#endif
|
||||
|
||||
char *
|
||||
__stpcpy_chk(char * __restrict dst, const char * __restrict src, size_t slen)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: stpncpy_chk.c,v 1.1 2013/11/06 16:31:08 christos Exp $ */
|
||||
/* $NetBSD: stpncpy_chk.c,v 1.2 2013/11/06 16:58:58 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2013 The NetBSD Foundation, Inc.
|
||||
@ -29,7 +29,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: stpncpy_chk.c,v 1.1 2013/11/06 16:31:08 christos Exp $");
|
||||
__RCSID("$NetBSD: stpncpy_chk.c,v 1.2 2013/11/06 16:58:58 christos Exp $");
|
||||
|
||||
/*LINTLIBRARY*/
|
||||
|
||||
@ -38,6 +38,10 @@ __RCSID("$NetBSD: stpncpy_chk.c,v 1.1 2013/11/06 16:31:08 christos Exp $");
|
||||
|
||||
#undef stpncpy
|
||||
|
||||
#if !__GNUC_PREREQ__(4, 8)
|
||||
char *__stpncpy_chk(char * __restrict, const char * __restrict, size_t, size_t);
|
||||
#endif
|
||||
|
||||
char *
|
||||
__stpncpy_chk(char * __restrict dst, const char * __restrict src, size_t len,
|
||||
size_t slen)
|
||||
|
Loading…
Reference in New Issue
Block a user