summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-11-04 18:11:58 +0000
committerJim Meyering <jim@meyering.net>1996-11-04 18:11:58 +0000
commit2876587b559036939a92df7bb1c7152ef0a462b6 (patch)
tree23a728780e9abdfa77dc39a84af6fbba48f0e08f /lib
parent1eb3a8c9bad66510d0c927112ff6e8eb9d54ddbe (diff)
downloadcoreutils-2876587b559036939a92df7bb1c7152ef0a462b6.tar.xz
libitize
Diffstat (limited to 'lib')
-rw-r--r--lib/xgetcwd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c
index 3615161a0..7ab220468 100644
--- a/lib/xgetcwd.c
+++ b/lib/xgetcwd.c
@@ -17,7 +17,7 @@
/* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */
-#ifdef HAVE_CONFIG_H
+#if HAVE_CONFIG_H
# include <config.h>
#endif
@@ -26,14 +26,15 @@
#ifndef errno
extern int errno;
#endif
+
#include <sys/types.h>
#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. */