summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/util.c b/util.c
index 3ebb2fe..757faee 100644
--- a/util.c
+++ b/util.c
@@ -507,10 +507,7 @@ ruby_strdup(const char *str)
char *
ruby_getcwd(void)
{
-#if defined __native_client__
- char *buf = xmalloc(2);
- strcpy(buf, ".");
-#elif defined HAVE_GETCWD
+#if defined HAVE_GETCWD
# undef RUBY_UNTYPED_DATA_WARNING
# define RUBY_UNTYPED_DATA_WARNING 0
# if defined NO_GETCWD_MALLOC