Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Fix non-fortify build.



details:   https://anonhg.NetBSD.org/src/rev/2f2785038faf
branches:  trunk
changeset: 762101:2f2785038faf
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 15 16:29:09 2011 +0000

description:
Fix non-fortify build.

diffstat:

 lib/libc/gen/getcwd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 7d93b8339fa7 -r 2f2785038faf lib/libc/gen/getcwd.c
--- a/lib/libc/gen/getcwd.c     Tue Feb 15 16:19:33 2011 +0000
+++ b/lib/libc/gen/getcwd.c     Tue Feb 15 16:29:09 2011 +0000
@@ -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(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



Home | Main Index | Thread Index | Old Index