Commit f232b262 authored by hartman's avatar hartman
Browse files

file: Fix compilation on Windows.

parent 1bd53068
......@@ -349,9 +349,10 @@ static int open_file (access_t *p_access, const char *path)
_("VLC could not open the file \"%s\"."), path);
return -1;
}
fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
#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
* than for caching what we've already seen/heard */
# 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