Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / external / fontconfig / android_x86.patch
blobc8c0fc14ee64934f072f1d8144c4c813a0eac096
1 Avoids "error: undefined symbol: posix_fadvise" if ANDROID_API_LEVEL is less than 21.
3 --- src/fccache.c
4 +++ src/fccache.c
5 @@ -962,7 +962,7 @@
7 #if defined(HAVE_MMAP) || defined(__CYGWIN__)
8 cache = mmap (0, fd_stat->st_size, PROT_READ, MAP_SHARED, fd, 0);
9 -#if defined(HAVE_POSIX_FADVISE) && defined(POSIX_FADV_WILLNEED)
10 +#if defined(HAVE_POSIX_FADVISE) && defined(POSIX_FADV_WILLNEED) && (!defined(__ANDROID_API__) || (__ANDROID_API__ >= 21))
11 posix_fadvise (fd, 0, fd_stat->st_size, POSIX_FADV_WILLNEED);
12 #endif
13 if (cache == MAP_FAILED)