summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-07-24 13:43:10 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-07-24 13:43:10 +0000
commit1b5acac5f0857eebffce91882535e1278ad33234 (patch)
treedf5fcd2efde1e17767b959871d7fa98da465dcd6 /sys-boot/grub/files
parentVersion bump. Older versions marked stable on x86. (diff)
downloadhistorical-1b5acac5f0857eebffce91882535e1278ad33234.tar.gz
historical-1b5acac5f0857eebffce91882535e1278ad33234.tar.bz2
historical-1b5acac5f0857eebffce91882535e1278ad33234.zip
Fix building with gcc2.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-boot/grub/files')
-rw-r--r--sys-boot/grub/files/grub-0.96-gcc2.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-boot/grub/files/grub-0.96-gcc2.patch b/sys-boot/grub/files/grub-0.96-gcc2.patch
new file mode 100644
index 000000000000..5600fb62b46d
--- /dev/null
+++ b/sys-boot/grub/files/grub-0.96-gcc2.patch
@@ -0,0 +1,19 @@
+--- grub-0.96/stage2/builtins.c 2005-07-24 15:46:56 +0200
++++ grub-0.96.az/stage2/builtins.c 2005-07-24 15:47:40 +0200
+@@ -2012,14 +2012,14 @@
+ int is_open = 0;
+ /* If LBA is forced? */
+ int is_force_lba = 0;
+-
+- *stage2_first_buffer = old_sect + SECTOR_SIZE;
+ #ifdef GRUB_UTIL
+ /* If the Stage 2 is in a partition mounted by an OS, this will store
+ the filename under the OS. */
+ char *stage2_os_file = 0;
+ #endif /* GRUB_UTIL */
+
++ *stage2_first_buffer = old_sect + SECTOR_SIZE;
++
+ /* First, check the GNU-style long option. */
+ while (1)
+ {