01-xlib-xrender-private.patch (750B)
1 diff --git a/gfx/cairo/cairo/src/cairo-xlib-xrender-private.h b/gfx/cairo/cairo/src/cairo-xlib-xrender-private.h 2 --- a/gfx/cairo/cairo/src/cairo-xlib-xrender-private.h 3 +++ b/gfx/cairo/cairo/src/cairo-xlib-xrender-private.h 4 @@ -96,6 +96,10 @@ 5 #define PictOpBlendMaximum 0x3e 6 #endif 7 8 +/* The mozilla build doesn't set up all the following HAVE_* symbols, 9 + so we cheat by just checking the version number for now. */ 10 +#if RENDER_MAJOR == 0 && RENDER_MINOR < 10 11 + 12 #if !HAVE_XRENDERCREATESOLIDFILL 13 #define XRenderCreateSolidFill _int_consume 14 #endif 15 @@ -132,6 +136,7 @@ typedef struct _XConicalGradient { 16 } XConicalGradient; 17 #endif 18 19 +#endif /* RENDER_MAJOR == 0 && RENDER_MINOR < 10 */ 20 21 #else /* !CAIRO_HAS_XLIB_XRENDER_SURFACE */