Ticket #36923: pixman_pixman-ppc.c.patch

File pixman_pixman-ppc.c.patch, 765 bytes (added by jmroot (Joshua Root), 12 years ago)
  • pixman/pixman-ppc.c

    old new  
    3737static pixman_bool_t
    3838pixman_have_vmx (void)
    3939{
     40    int error, have_vmx;
    4041    size_t length = sizeof(have_vmx);
    41     int error, have_mmx;
    4242
    43     sysctlbyname ("hw.optional.altivec", &have_vmx, &length, NULL, 0);
     43    error = sysctlbyname ("hw.optional.altivec", &have_vmx, &length, NULL, 0);
    4444
    4545    if (error)
    4646        return FALSE;
    pixman_have_vmx (void) 
    5656static pixman_bool_t
    5757pixman_have_vmx (void)
    5858{
     59    int error, have_vmx;
    5960    int mib[2] = { CTL_MACHDEP, CPU_ALTIVEC };
    6061    size_t length = sizeof(have_vmx);
    61     int error, have_vmx;
    6262
    6363    error = sysctl (mib, 2, &have_vmx, &length, NULL, 0);
    6464