aboutsummaryrefslogtreecommitdiff
path: root/fontconfig/src/fccache.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-04-17 08:15:58 +0200
committermarha <marha@users.sourceforge.net>2012-04-17 08:15:58 +0200
commitc1194ccd395fdbb23c9ab56bc340ee20a5feeb82 (patch)
treebd62f97d832e6d17fab91db957c79bd38e6900bf /fontconfig/src/fccache.c
parentd6d3999ccb2cb72d55820770260172eccbbb68d7 (diff)
downloadvcxsrv-c1194ccd395fdbb23c9ab56bc340ee20a5feeb82.tar.gz
vcxsrv-c1194ccd395fdbb23c9ab56bc340ee20a5feeb82.tar.bz2
vcxsrv-c1194ccd395fdbb23c9ab56bc340ee20a5feeb82.zip
fontconfig mesa git update 17 Apr 2012
Diffstat (limited to 'fontconfig/src/fccache.c')
-rw-r--r--fontconfig/src/fccache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fontconfig/src/fccache.c b/fontconfig/src/fccache.c
index db7561f9e..343ece9a7 100644
--- a/fontconfig/src/fccache.c
+++ b/fontconfig/src/fccache.c
@@ -609,6 +609,9 @@ FcDirCacheMapFd (int fd, struct stat *fd_stat, struct stat *dir_stat)
{
#if defined(HAVE_MMAP) || defined(__CYGWIN__)
cache = mmap (0, fd_stat->st_size, PROT_READ, MAP_SHARED, fd, 0);
+#ifdef HAVE_POSIX_FADVISE
+ posix_fadvise (fd, 0, fd_stat->st_size, POSIX_FADV_WILLNEED);
+#endif
if (cache == MAP_FAILED)
cache = NULL;
#elif defined(_WIN32)