X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxgetcwd.c;h=7ab2204682587acdc16722c412912c88c7dbcef0;hb=c52618d1e7305ada7afba73b6b0452bb8d6983cb;hp=84164acb3d464043b44dc4f12b21d44490f11c17;hpb=783c1624bd8b027a65b3fba57d3213ccb1a6ddbd;p=gnulib.git diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c index 84164acb3..7ab220468 100644 --- a/lib/xgetcwd.c +++ b/lib/xgetcwd.c @@ -1,5 +1,5 @@ /* xgetcwd.c -- return current directory with unlimited length - Copyright (C) 1992 Free Software Foundation, Inc. + Copyright (C) 1992, 1996 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 @@ -17,7 +17,7 @@ /* Written by David MacKenzie . */ -#ifdef HAVE_CONFIG_H +#if HAVE_CONFIG_H # include #endif @@ -26,14 +26,15 @@ #ifndef errno extern int errno; #endif + #include #include "pathmax.h" -#ifndef HAVE_GETCWD -char *getwd (); -# define getcwd(buf, max) getwd (buf) -#else +#if HAVE_GETCWD char *getcwd (); +#else +char *getwd (); +# define getcwd(Buf, Max) getwd (Buf) #endif /* Amount to increase buffer size by in each try. */