[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-fontconfig
Subject: [Fontconfig] fontconfig: Branch 'master'
From: gitlab-mirror () kemper ! freedesktop ! org (GitLab Mirror)
Date: 2019-01-25 3:53:48
Message-ID: 20190125035348.BC8C3761AA () kemper ! freedesktop ! org
[Download RAW message or body]
src/fccache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 586e35450e9ca7c1dc647ceb9d75ac8ed08c5c16
Author: Robert Yang <liezhi.yang@windriver.com>
Date: Fri Jan 25 10:15:36 2019 +0800
src/fccache.c: Fix define for HAVE_POSIX_FADVISE
Otherwise, there would be build errors in the following 2 cases:
* define HAVE_POSIX_FADVISE
Or:
* undef HAVE_POSIX_FADVISE
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
diff --git a/src/fccache.c b/src/fccache.c
index 3352a66..ac46ee8 100644
--- a/src/fccache.c
+++ b/src/fccache.c
@@ -976,7 +976,7 @@ FcDirCacheMapFd (FcConfig *config, int fd, struct stat *fd_stat, struct stat *di
{
#if defined(HAVE_MMAP) || defined(__CYGWIN__)
cache = mmap (0, fd_stat->st_size, PROT_READ, MAP_SHARED, fd, 0);
-#if (HAVE_POSIX_FADVISE) && defined(POSIX_FADV_WILLNEED)
+#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)
_______________________________________________
Fontconfig mailing list
Fontconfig@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/fontconfig
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic