Mercurial > hg > release > icedtea6-1.9
view patches/g344659-sparc_fix.patch @ 2326:66db0252562c
G344659: Fix issue when building on SPARC
2011-02-13 Andrew John Hughes <ahughes@redhat.com>
G344659: Fix issue when building on SPARC
* Makefile.am: Add new patch.
* NEWS: Updated.
* patches/g344659-sparc_fix.patch:
Add fix for SPARC builds on Gentoo.
author | Andrew John Hughes <ahughes@redhat.com> |
---|---|
date | Mon, 14 Feb 2011 02:17:45 +0000 |
parents | |
children |
line wrap: on
line source
diff -uNr openjdk.orig/hotspot/src/os_cpu/linux_sparc/vm/vm_version_linux_sparc.cpp openjdk/hotspot/src/os_cpu/linux_sparc/vm/v_version_linux_sparc.cpp --- openjdk.orig/hotspot/src/os_cpu/linux_sparc/vm/vm_version_linux_sparc.cpp 2010-06-21 22:12:15.000000000 +0100 +++ openjdk/hotspot/src/os_cpu/linux_sparc/vm/vm_version_linux_sparc.cpp 2010-11-29 20:15:36.179541001 +0000 @@ -35,7 +35,7 @@ } while (!feof(fp)) { - if (fscanf(fp, "cpu\t\t: %100[^\n]", &cpu) == 1) { + if (fscanf(fp, "cpu\t\t: %100[^\n]", &cpu[0]) == 1) { if (strstr(cpu, "Niagara") != NULL) { rv = true; }