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 37 37 static pixman_bool_t 38 38 pixman_have_vmx (void) 39 39 { 40 int error, have_vmx; 40 41 size_t length = sizeof(have_vmx); 41 int error, have_mmx;42 42 43 sysctlbyname ("hw.optional.altivec", &have_vmx, &length, NULL, 0);43 error = sysctlbyname ("hw.optional.altivec", &have_vmx, &length, NULL, 0); 44 44 45 45 if (error) 46 46 return FALSE; … … pixman_have_vmx (void) 56 56 static pixman_bool_t 57 57 pixman_have_vmx (void) 58 58 { 59 int error, have_vmx; 59 60 int mib[2] = { CTL_MACHDEP, CPU_ALTIVEC }; 60 61 size_t length = sizeof(have_vmx); 61 int error, have_vmx;62 62 63 63 error = sysctl (mib, 2, &have_vmx, &length, NULL, 0); 64 64