Commit acf6c18f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

file: Fix compilation on Windows

parent 9bac059b
...@@ -380,9 +380,10 @@ static int open_file (access_t *p_access, const char *path) ...@@ -380,9 +380,10 @@ static int open_file (access_t *p_access, const char *path)
_("VLC could not open the file \"%s\"."), path); _("VLC could not open the file \"%s\"."), path);
return -1; return -1;
} }
fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
# if defined(HAVE_FCNTL_H) # if defined(HAVE_FCNTL_H)
fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
/* We'd rather use any available memory for reading ahead /* We'd rather use any available memory for reading ahead
* than for caching what we've already seen/heard */ * than for caching what we've already seen/heard */
# if defined(F_RDAHEAD) # if defined(F_RDAHEAD)
......
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