mozilla-sle11.patch
changeset 294 5330447b83a3
parent 285 0287f70d86e9
child 382 67f876aafae8
equal deleted inserted replaced
293:3fd4e37e5e52 294:5330447b83a3
     1 Subject: Patches needed to build on SLE11/11.1
     1 Subject: Patches needed to build on SLE11/11.1
     2 References:
     2 References:
     3 https://bugzilla.mozilla.org/show_bug.cgi?id=513422
     3 https://bugzilla.mozilla.org/show_bug.cgi?id=513422
     4 
     4 
     5 diff --git a/gfx/cairo/cairo/src/cairo-xlib-surface.c b/gfx/cairo/cairo/src/cairo-xlib-surface.c
       
     6 --- a/gfx/cairo/cairo/src/cairo-xlib-surface.c
       
     7 +++ b/gfx/cairo/cairo/src/cairo-xlib-surface.c
       
     8 @@ -4041,17 +4041,19 @@ _cairo_xlib_surface_add_glyph (Display *
       
     9  	    new = malloc (4 * c);
       
    10  	    if (unlikely (new == NULL)) {
       
    11  		status = _cairo_error (CAIRO_STATUS_NO_MEMORY);
       
    12  		goto BAIL;
       
    13  	    }
       
    14  	    n = new;
       
    15  	    d = (uint32_t *) data;
       
    16  	    do {
       
    17 -		*n++ = bswap_32 (*d++);
       
    18 +		*n = bswap_32 (*d);
       
    19 +                *n++;
       
    20 +                *d++;
       
    21  	    } while (--c);
       
    22  	    data = (uint8_t *) new;
       
    23  	}
       
    24  	break;
       
    25      case CAIRO_FORMAT_RGB24:
       
    26      default:
       
    27  	ASSERT_NOT_REACHED;
       
    28  	break;
       
    29 diff --git a/xpcom/glue/SSE.cpp b/xpcom/glue/SSE.cpp
     5 diff --git a/xpcom/glue/SSE.cpp b/xpcom/glue/SSE.cpp
    30 --- a/xpcom/glue/SSE.cpp
     6 --- a/xpcom/glue/SSE.cpp
    31 +++ b/xpcom/glue/SSE.cpp
     7 +++ b/xpcom/glue/SSE.cpp
    32 @@ -44,26 +44,77 @@ namespace {
     8 @@ -44,26 +44,77 @@ namespace {
    33  // SSE.h has parallel #ifs which declare MOZILLA_SSE_HAVE_CPUID_DETECTION.
     9  // SSE.h has parallel #ifs which declare MOZILLA_SSE_HAVE_CPUID_DETECTION.