X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxgetcwd.c;h=7ab2204682587acdc16722c412912c88c7dbcef0;hb=06da55489a7555b33a12fd0352d78d2e9e263997;hp=7aa04efa414dce97dff389c20185e8e7265fccad;hpb=6d8337bfc808cddc275899c03482eceb6aff8547;p=gnulib.git diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c index 7aa04efa4..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,8 +17,8 @@ /* Written by David MacKenzie . */ -#ifdef HAVE_CONFIG_H -#include +#if HAVE_CONFIG_H +# include #endif #include @@ -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. */