--- fccache.c.org 2009-04-05 18:43:00.000000000 +0200 +++ fccache.c 2009-04-05 18:43:06.000000000 +0200 @@ -552,6 +552,8 @@ { #if defined(HAVE_MMAP) || defined(__CYGWIN__) cache = mmap (0, fd_stat->st_size, PROT_READ, MAP_SHARED, fd, 0); + if (cache == MAP_FAILED) + cache = NULL; #elif defined(_WIN32) { HANDLE hFileMap;