Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/getcwd.c,v retrieving revision 1.5 retrieving revision 1.5.4.2 diff -u -p -r1.5 -r1.5.4.2 --- src/lib/libc/gen/getcwd.c 1995/06/16 07:05:30 1.5 +++ src/lib/libc/gen/getcwd.c 1996/09/19 20:02:41 1.5.4.2 @@ -1,4 +1,4 @@ -/* $NetBSD: getcwd.c,v 1.5 1995/06/16 07:05:30 jtc Exp $ */ +/* $NetBSD: getcwd.c,v 1.5.4.2 1996/09/19 20:02:41 jtc Exp $ */ /* * Copyright (c) 1989, 1991, 1993 @@ -37,10 +37,11 @@ #if 0 static char sccsid[] = "@(#)getcwd.c 8.1 (Berkeley) 6/4/93"; #else -static char rcsid[] = "$NetBSD: getcwd.c,v 1.5 1995/06/16 07:05:30 jtc Exp $"; +static char rcsid[] = "$NetBSD: getcwd.c,v 1.5.4.2 1996/09/19 20:02:41 jtc Exp $"; #endif #endif /* LIBC_SCCS and not lint */ +#include "namespace.h" #include #include @@ -51,6 +52,10 @@ static char rcsid[] = "$NetBSD: getcwd.c #include #include +#ifdef __weak_alias +__weak_alias(getcwd,_getcwd); +#endif + #define ISDOT(dp) \ (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ dp->d_name[1] == '.' && dp->d_name[2] == '\0'))