From 17dc3751c22d898695c8a7f688acf3ac35ff863c Mon Sep 17 00:00:00 2001 From: proski Date: Mon, 13 Jul 2009 23:04:31 +0000 Subject: [PATCH] 2009-07-13 Pavel Roskin * kern/dl.c: Force native word size to suppress warnings when compiling grub-emu. --- ChangeLog | 3 +++ kern/dl.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index a8bd9ad94..edb717377 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-07-13 Pavel Roskin + * 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. diff --git a/kern/dl.c b/kern/dl.c index 6c863be6f..122b6b90e 100644 --- a/kern/dl.c +++ b/kern/dl.c @@ -17,6 +17,9 @@ * along with GRUB. If not, see . */ +/* Force native word size */ +#define GRUB_TARGET_WORDSIZE (8 * GRUB_CPU_SIZEOF_VOID_P) + #include #include #include