Revision: 2406
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2406
Author: proski
Date: 2009-07-13 23:04:31 +0000 (Mon, 13 Jul 2009)
Log Message:
-----------
2009-07-13 Pavel Roskin <[email protected]>
* kern/dl.c: Force native word size to suppress warnings when
compiling grub-emu.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/kern/dl.c
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-07-13 22:21:49 UTC (rev 2405)
+++ trunk/grub2/ChangeLog 2009-07-13 23:04:31 UTC (rev 2406)
@@ -1,5 +1,8 @@
2009-07-13 Pavel Roskin <[email protected]>
+ * kern/dl.c: Force native word size to suppress warnings when
+ compiling grub-emu.
+
* kern/device.c (grub_device_iterate): Change struct part_ent to
hold the name, not a pointer to it. Use one grub_malloc() per
partition, not two. Free partition_name if grub_malloc() fails.
Modified: trunk/grub2/kern/dl.c
===================================================================
--- trunk/grub2/kern/dl.c 2009-07-13 22:21:49 UTC (rev 2405)
+++ trunk/grub2/kern/dl.c 2009-07-13 23:04:31 UTC (rev 2406)
@@ -17,6 +17,9 @@
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
+/* Force native word size */
+#define GRUB_TARGET_WORDSIZE (8 * GRUB_CPU_SIZEOF_VOID_P)
+
#include <config.h>
#include <grub/elf.h>
#include <grub/dl.h>