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

Add missing argument to fcntl(F_DUPFD_CLOEXEC)

parent 60044057
...@@ -252,7 +252,7 @@ int vlc_dup (int oldfd) ...@@ -252,7 +252,7 @@ int vlc_dup (int oldfd)
int newfd; int newfd;
#ifdef F_DUPFD_CLOEXEC #ifdef F_DUPFD_CLOEXEC
newfd = fcntl (oldfd, F_DUPFD_CLOEXEC); newfd = fcntl (oldfd, F_DUPFD_CLOEXEC, 0);
if (unlikely(newfd == -1 && errno == EINVAL)) if (unlikely(newfd == -1 && errno == EINVAL))
#endif #endif
{ {
......
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