X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetcwd.h;h=59606ddc249c6236ebfe82da27d4886dd29bc66d;hb=c7c220336bdebb2f0302e2a618a3537a80f8e979;hp=d69fe206b8b25442b339bed292e543642697b1b3;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/getcwd.h b/lib/getcwd.h index d69fe206b..59606ddc2 100644 --- a/lib/getcwd.h +++ b/lib/getcwd.h @@ -1,6 +1,6 @@ /* Get the working directory, compatibly with the GNU C Library. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004-2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,9 +22,7 @@ cause confusion if included after this file. */ #include -#if HAVE_UNISTD_H -# include -#endif +#include /* If necessary, systematically rename identifiers so that they do not collide with the system function. Renaming avoids problems with @@ -36,5 +34,7 @@ # define __GETCWD_XCONCAT(x, y) __GETCWD_CONCAT (x, y) # define __GETCWD_ID(y) __GETCWD_XCONCAT (__GETCWD_PREFIX, y) # define getcwd __GETCWD_ID (getcwd) +/* See the POSIX:2001 specification + . */ char *getcwd (char *, size_t); #endif