aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/getcwd.c')
-rw-r--r--sysdeps/posix/getcwd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c
index c7fda3eb2c..ef4cb84191 100644
--- a/sysdeps/posix/getcwd.c
+++ b/sysdeps/posix/getcwd.c
@@ -190,8 +190,8 @@ extern char *alloca ();
# define __getcwd getcwd
#endif
-#ifndef GETCWD_STORAGE_CLASS
-# define GETCWD_STORAGE_CLASS
+#ifndef GETCWD_RETURN_TYPE
+# define GETCWD_RETURN_TYPE char *
#endif
/* Get the pathname of the current working directory, and put it in SIZE
@@ -200,8 +200,7 @@ extern char *alloca ();
NULL, an array is allocated with `malloc'; the array is SIZE bytes long,
unless SIZE <= 0, in which case it is as big as necessary. */
-GETCWD_STORAGE_CLASS
-char *
+GETCWD_RETURN_TYPE
__getcwd (buf, size)
char *buf;
size_t size;