]> git.sesse.net Git - vlc/commitdiff
file: Big bug... typo in the define.
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 10 Oct 2008 11:53:08 +0000 (13:53 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 10 Oct 2008 11:53:08 +0000 (13:53 +0200)
The code was never enabled.

modules/access/file.c

index dbb49c1951eddf6828553d83c4a330a3556b7670..bd195d51d24da3ae7581c19fc83a72fa9b7162dc 100644 (file)
@@ -350,12 +350,16 @@ static int open_file (access_t *p_access, const char *path)
         return -1;
     }
 
-# if defined(HAVE_FCNTL_H) && defined(F_FDAHEAD) && defined(F_NOCACHE)
+#if defined(HAVE_FCNTL_H)
     /* We'd rather use any available memory for reading ahead
      * than for caching what we've already seen/heard */
+# if defined(F_RDAHEAD)
     fcntl (fd, F_RDAHEAD, 1);
+# endif
+# if defined(F_NOCACHE)
     fcntl (fd, F_NOCACHE, 1);
 # endif
+#endif
 
     return fd;
 }