]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
authorphcoder <phcoder@localhost>
Sat, 9 May 2009 10:58:43 +0000 (10:58 +0000)
committerphcoder <phcoder@localhost>
Sat, 9 May 2009 10:58:43 +0000 (10:58 +0000)
Fixed grub-emu

* kern/dl.c (grub_dl_ref): omit when compiling grub-emu
(grub_dl_ref): likewise

ChangeLog
kern/dl.c

index c307abe68eea4b7b0fd4e2b3a5fb10bde74f138e..20a083d9982be88b4d96ca674d90a32953d2ec70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Fixed grub-emu
+
+       * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
+       (grub_dl_ref): likewise
+
 2009-05-08  Robert Millan  <rmh.grub@aybabtu.com>
 
        * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
index 458ad589fe4bd924211fb127ee40e6b7863cf021..84c465ccba39bd886544a26fcfd1aaaadab5f8f8 100644 (file)
--- a/kern/dl.c
+++ b/kern/dl.c
@@ -480,6 +480,7 @@ grub_dl_resolve_dependencies (grub_dl_t mod, Elf_Ehdr *e)
   return GRUB_ERR_NONE;
 }
 
+#ifndef GRUB_UTIL
 int
 grub_dl_ref (grub_dl_t mod)
 {
@@ -501,6 +502,7 @@ grub_dl_unref (grub_dl_t mod)
   
   return --mod->ref_count;
 }
+#endif
 
 static void
 grub_dl_flush_cache (grub_dl_t mod)