script: Compile without mmap

Should fix:
  Bug 26509 - Cairo fails to compile without mmap
  http://bugs.freedesktop.org/show_bug.cgi?id=26509

As reported by Hib Eris, Cairo files to compile under a mingw32
cross-compiler as we use a structure only defined if HAVE_MMAP
unconditionally.
This commit is contained in:
Chris Wilson 2010-02-10 12:10:16 +00:00
parent fb5af4ae40
commit 5d34902c0c

View file

@ -1670,12 +1670,13 @@ _ft_done_face (void *closure)
cairo_script_interpreter_destroy (ctx);
}
#ifdef HAVE_MMAP
/* manual form of swapping for swapless systems like tiny */
struct mmap_vec {
const uint8_t *bytes;
size_t num_bytes;
};
#ifdef HAVE_MMAP
/* manual form of swapping for swapless systems like tiny */
static void *
_mmap_bytes (const struct mmap_vec *vec, int count)
{