[vlc-devel] commit: file: Big bug... typo in the define. (Derk-Jan Hartman )
git version control
git at videolan.org
Fri Oct 10 13:55:01 CEST 2008
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Fri Oct 10 13:53:08 2008 +0200| [47a7e913b9c0dc31ba931bfac154d109cdb7e924] | committer: Derk-Jan Hartman
file: Big bug... typo in the define.
The code was never enabled.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47a7e913b9c0dc31ba931bfac154d109cdb7e924
---
modules/access/file.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index dbb49c1..bd195d5 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -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;
}
More information about the vlc-devel
mailing list