diff options
author | marha <marha@users.sourceforge.net> | 2012-04-17 08:19:12 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-04-17 08:19:12 +0200 |
commit | 66ef63554438d427d0ddb2137baf48a653a89dd3 (patch) | |
tree | df7212290cc842fb715edc0ed973e3b535d30548 /fontconfig/src/fccache.c | |
parent | a32ffa892cbd6e7ee6153cb9b2f854b4a99c180c (diff) | |
parent | c1194ccd395fdbb23c9ab56bc340ee20a5feeb82 (diff) | |
download | vcxsrv-66ef63554438d427d0ddb2137baf48a653a89dd3.tar.gz vcxsrv-66ef63554438d427d0ddb2137baf48a653a89dd3.tar.bz2 vcxsrv-66ef63554438d427d0ddb2137baf48a653a89dd3.zip |
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'fontconfig/src/fccache.c')
-rw-r--r-- | fontconfig/src/fccache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fontconfig/src/fccache.c b/fontconfig/src/fccache.c index bbf950f17..0fc599583 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) |