Commit 0596d729 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys Committed by Keith Packard

More fixes for Win32 building (bug 8311)

Our build system barfs on autogen.sh, which ignores --noconfigure. Configure
needs a host of options to make the cross compile work in our case.

Fix typo in fccache.c
parent 1de7a4cc
......@@ -6,6 +6,13 @@ set -e
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
case "$1" in
--noconf*)
AUTOGEN_SUBDIR_MODE="true"
shift
;;
esac
ORIGDIR=`pwd`
cd $srcdir
PROJECT=Fontconfig
......
......@@ -454,7 +454,8 @@ FcDirCacheMapFd (int fd, struct stat *fd_stat)
PAGE_READONLY, 0, 0, NULL);
if (hFileMap != NULL)
{
cache = MapViewOfFile (hFileMap, FILE_MAP_READ, 0, 0, size);
cache = MapViewOfFile (hFileMap, FILE_MAP_READ, 0, 0,
fd_stat->st_size);
CloseHandle (hFileMap);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment