Commit ba3ec085 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

posix: do not open("/tmp") on non-Linux

parent 14ea97de
......@@ -112,7 +112,7 @@ int vlc_mkstemp (char *template)
int vlc_memfd (void)
int fd;
#ifdef O_TMPFILE
fd = vlc_open ("/tmp", O_RDWR|O_TMPFILE, S_IRUSR|S_IWUSR);
if (fd != -1)
return fd;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment