mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 06:18:02 +02:00
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:
parent
fb5af4ae40
commit
5d34902c0c
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue