[cairo-commit] util/cairo-script

Chris Wilson ickle at kemper.freedesktop.org
Wed Feb 10 04:12:06 PST 2010


 util/cairo-script/cairo-script-operators.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 5d34902c0cb9712179292112fbdb0f06be327fd8
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Feb 10 12:10:16 2010 +0000

    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.

diff --git a/util/cairo-script/cairo-script-operators.c b/util/cairo-script/cairo-script-operators.c
index 91188d9..2456c3a 100644
--- a/util/cairo-script/cairo-script-operators.c
+++ b/util/cairo-script/cairo-script-operators.c
@@ -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)
 {


More information about the cairo-commit mailing list