Skip to content
Snippets Groups Projects
Commit f0698692 authored by Brad King's avatar Brad King
Browse files

libuv: Implement mkdtemp on Solaris 10

parent 5651257f
No related branches found
No related tags found
No related merge requests found
......@@ -244,9 +244,19 @@ skip:
#endif
}
#if defined(__sun) && _XOPEN_SOURCE < 600
static char* uv__mkdtemp(char *template)
{
if (!mktemp(template) || mkdir(template, 0700))
return NULL;
return template;
}
#else
#define uv__mkdtemp mkdtemp
#endif
static ssize_t uv__fs_mkdtemp(uv_fs_t* req) {
return mkdtemp((char*) req->path) ? 0 : -1;
return uv__mkdtemp((char*) req->path) ? 0 : -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment