summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/getcwd.c')
-rw-r--r--otherlibs/unix/getcwd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/otherlibs/unix/getcwd.c b/otherlibs/unix/getcwd.c
index 5d97b0ba4..1c7b19f73 100644
--- a/otherlibs/unix/getcwd.c
+++ b/otherlibs/unix/getcwd.c
@@ -23,7 +23,7 @@
#define MAXPATHLEN 512
#endif
-value unix_getcwd() /* ML */
+value unix_getcwd(value unit) /* ML */
{
char buff[MAXPATHLEN];
if (getcwd(buff, sizeof(buff)) == 0) uerror("getcwd", Nothing);
@@ -35,7 +35,7 @@ value unix_getcwd() /* ML */
#include <sys/param.h>
-value unix_getcwd()
+value unix_getcwd(value unit)
{
char buff[MAXPATHLEN];
if (getwd(buff) == 0) uerror("getcwd", copy_string(buff));
@@ -44,7 +44,8 @@ value unix_getcwd()
#else
-value unix_getcwd() { invalid_argument("getcwd not implemented"); }
+value unix_getcwd(value unit)
+{ invalid_argument("getcwd not implemented"); }
#endif
#endif