]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/osdep/unix/exec.c: Fix compilation error on emu.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 19 Oct 2013 21:53:48 +0000 (23:53 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 19 Oct 2013 21:53:48 +0000 (23:53 +0200)
ChangeLog
grub-core/osdep/unix/exec.c

index e5606fd57f8514bd50a78d21eb48a8b195ef0c26..543a30697cfd5c89a48a81415a64f5079fc2581d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
+
 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
index 575377fe71af64c547a516a7c5b4596494c9861c..239a68b32e836d113dae2c48d95b3709aec7fcef 100644 (file)
@@ -25,6 +25,7 @@
 #include <grub/emu/hostdisk.h>
 #include <grub/emu/getroot.h>
 #include <grub/util/misc.h>
+#include <grub/disk.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -46,8 +47,10 @@ grub_util_exec (const char *const *argv)
       /* Child.  */
 
       /* Close fd's.  */
+#ifdef GRUB_UTIL
       grub_util_devmapper_cleanup ();
       grub_diskfilter_fini ();
+#endif
 
       /* Ensure child is not localised.  */
       setenv ("LC_ALL", "C", 1);
@@ -78,8 +81,10 @@ grub_util_exec_redirect (const char *const *argv, const char *stdin_file,
       /* Child.  */
       
       /* Close fd's.  */
+#ifdef GRUB_UTIL
       grub_util_devmapper_cleanup ();
       grub_diskfilter_fini ();
+#endif
 
       in = open (stdin_file, O_RDONLY);
       dup2 (in, STDIN_FILENO);
@@ -129,8 +134,10 @@ grub_util_exec_pipe (const char *const *argv, int *fd)
       /* Child.  */
 
       /* Close fd's.  */
+#ifdef GRUB_UTIL
       grub_util_devmapper_cleanup ();
       grub_diskfilter_fini ();
+#endif
 
       /* Ensure child is not localised.  */
       setenv ("LC_ALL", "C", 1);
@@ -172,8 +179,10 @@ grub_util_exec_pipe_stderr (const char *const *argv, int *fd)
       /* Child.  */
 
       /* Close fd's.  */
+#ifdef GRUB_UTIL
       grub_util_devmapper_cleanup ();
       grub_diskfilter_fini ();
+#endif
 
       /* Ensure child is not localised.  */
       setenv ("LC_ALL", "C", 1);