Fix non-fortify build.
This commit is contained in:
parent
99c6c22267
commit
c464e0ebc5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getcwd.c,v 1.47 2011/01/20 02:57:00 christos Exp $ */
|
||||
/* $NetBSD: getcwd.c,v 1.48 2011/02/15 16:29:09 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1991, 1993, 1995
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)getcwd.c 8.5 (Berkeley) 2/7/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: getcwd.c,v 1.47 2011/01/20 02:57:00 christos Exp $");
|
||||
__RCSID("$NetBSD: getcwd.c,v 1.48 2011/02/15 16:29:09 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -58,9 +58,10 @@ __weak_alias(getcwd,_sys_getcwd)
|
|||
__weak_alias(_getcwd,_sys_getcwd)
|
||||
__weak_alias(realpath,_realpath)
|
||||
|
||||
#if defined(_FORTIFY_SOURCE) && !defined(__lint__)
|
||||
#undef getcwd
|
||||
#define getcwd _sys_getcwd
|
||||
#if !defined(_FORTIFY_SOURCE)
|
||||
char *_sys_getcwd(char *, size_t);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue