Commit 68a61049 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Compile fix for OSes without F_RDAHEAD and F_NOCACHE

parent 165bc2f4
...@@ -635,7 +635,7 @@ static int _OpenFile( access_t * p_access, const char * psz_name ) ...@@ -635,7 +635,7 @@ static int _OpenFile( access_t * p_access, const char * psz_name )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
#ifdef HAVE_FCNTL_H #if defined(HAVE_FCNTL_H) && defined(F_FDAHEAD) && defined(F_NOCACHE)
/* 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 */
fcntl(p_sys->fd, F_RDAHEAD, 1); fcntl(p_sys->fd, F_RDAHEAD, 1);
......
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