diff options
author | marha <marha@users.sourceforge.net> | 2013-10-21 07:48:16 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-10-21 07:48:16 +0200 |
commit | c665b6e88274f8bc603b0f14f92bf09d2023bd4d (patch) | |
tree | e6b3c81a76d0cc2df868263aeae0ab045eaf45b4 /fontconfig/src | |
parent | 91e353434f0a6859f404be05581f44d009ca5d6c (diff) | |
parent | 6d895f30ab93d71afddc612d8b007f2de7f04165 (diff) | |
download | vcxsrv-c665b6e88274f8bc603b0f14f92bf09d2023bd4d.tar.gz vcxsrv-c665b6e88274f8bc603b0f14f92bf09d2023bd4d.tar.bz2 vcxsrv-c665b6e88274f8bc603b0f14f92bf09d2023bd4d.zip |
Merge remote-tracking branch 'origin/released'
* origin/released:
fontconfig mesa xserver xkeyboard-config git update 21 okt 2013
Diffstat (limited to 'fontconfig/src')
-rw-r--r-- | fontconfig/src/fccache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fontconfig/src/fccache.c b/fontconfig/src/fccache.c index 3568595ed..c7f243749 100644 --- a/fontconfig/src/fccache.c +++ b/fontconfig/src/fccache.c @@ -28,6 +28,7 @@ #include <dirent.h> #include <string.h> #include <sys/types.h> +#include <sys/stat.h> #include <assert.h> #if defined(HAVE_MMAP) || defined(__CYGWIN__) # include <unistd.h> @@ -572,7 +573,7 @@ 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 +#if defined(HAVE_POSIX_FADVISE) && defined(POSIX_FADV_WILLNEED) posix_fadvise (fd, 0, fd_stat->st_size, POSIX_FADV_WILLNEED); #endif if (cache == MAP_FAILED) |