summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/lib/xgetwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/lib/xgetwd.c')
-rw-r--r--contrib/cvs/lib/xgetwd.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/contrib/cvs/lib/xgetwd.c b/contrib/cvs/lib/xgetwd.c
index e2a3baa..bbae81d 100644
--- a/contrib/cvs/lib/xgetwd.c
+++ b/contrib/cvs/lib/xgetwd.c
@@ -1,5 +1,5 @@
/* xgetwd.c -- return current directory with unlimited length
- Copyright (C) 1992 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1997 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
@@ -26,14 +26,6 @@ extern int errno;
#endif
#include <sys/types.h>
-#ifndef HAVE_GETWD
-char *getwd ();
-#define GETWD(buf, max) getwd (buf)
-#else
-char *getcwd ();
-#define GETWD(buf, max) getcwd (buf, max)
-#endif
-
/* Amount by which to increase buffer size when allocating more space. */
#define PATH_INCR 32
@@ -57,7 +49,7 @@ xgetwd ()
cwd = xmalloc (path_max);
errno = 0;
- while ((ret = GETWD (cwd, path_max)) == NULL && errno == ERANGE)
+ while ((ret = getcwd (cwd, path_max)) == NULL && errno == ERANGE)
{
path_max += PATH_INCR;
cwd = xrealloc (cwd, path_max);
OpenPOWER on IntegriCloud