diff options
author | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2006-09-17 17:03:33 -0700 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2006-09-17 17:03:33 -0700 |
commit | 0596d7296c94b2bb9817338b8c1a76da91673fb9 (patch) | |
tree | ac0188d15dea3a9e7373417f6b13f5d8bd350863 /src | |
parent | 1de7a4cc09172bbc99912e1410f46fc16c1a05ec (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fccache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fccache.c b/src/fccache.c index 6a3d8e8..ba6af72 100644 --- a/src/fccache.c +++ b/src/fccache.c @@ -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); } } |