diff --git a/mrbgems/mruby-io/test/mruby_io_test.c b/mrbgems/mruby-io/test/mruby_io_test.c index 35dce463e..29d91f536 100644 --- a/mrbgems/mruby-io/test/mruby_io_test.c +++ b/mrbgems/mruby-io/test/mruby_io_test.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -16,10 +17,9 @@ static int mkstemp(char *p) { char *template, *path; - char *path; int fd; - template = strdup(p); + template = _strdup(p); if (template == NULL) return -1; path = _mktemp(template); if (path[0] == 0) {