PowerPC build fix in mono-hwcap-ppc.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 19 Jul 2013 04:48:16 +0000 (06:48 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 20 Jul 2013 01:03:55 +0000 (03:03 +0200)
mono/utils/mono-hwcap-ppc.c

index 30e4afb7588a846638adcf6ff23893d460e91f34..c88b95f6ec810974cee7fbf0a33d827e073042eb 100644 (file)
@@ -60,7 +60,7 @@ mono_hwcap_arch_init (void)
        if ((platform = getauxval(AT_PLATFORM))) {
                const char *str = (const char *) platform;
 
-               if (!strcmp (str, "ppc970") || (!strncmp (str, "power", 5) && arch [5] >= '4' && arch [5] <= '7'))
+               if (!strcmp (str, "ppc970") || (!strncmp (str, "power", 5) && str [5] >= '4' && str [5] <= '7'))
                        mono_hwcap_ppc_has_multiple_ls_units = TRUE;
        }
 #endif