]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-07-13 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Mon, 13 Jul 2009 23:04:31 +0000 (23:04 +0000)
committerproski <proski@localhost>
Mon, 13 Jul 2009 23:04:31 +0000 (23:04 +0000)
* kern/dl.c: Force native word size to suppress warnings when
compiling grub-emu.

ChangeLog
kern/dl.c

index a8bd9ad945f6b1dd6cef7ac4001831dc398ce95c..edb71737764a9db3782ddeea18b02aff1f3b46bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-07-13  Pavel Roskin  <proski@gnu.org>
 
+       * 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.
index 6c863be6f0d770507460752d35541ca18fcb5dfd..122b6b90e32fa64689ba39e10d276071b0c0bc5c 100644 (file)
--- a/kern/dl.c
+++ b/kern/dl.c
@@ -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>