]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix build with non-GNU libcs.
authorColin Watson <cjwatson@ubuntu.com>
Tue, 18 May 2010 10:57:31 +0000 (11:57 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 18 May 2010 10:57:31 +0000 (11:57 +0100)
* util/misc.c (canonicalize_file_name): Move to ...
* kern/emu/misc.c (canonicalize_file_name): ... here.  Needed by
grub_make_system_path_relative_to_its_root.

ChangeLog
kern/emu/misc.c
util/misc.c

index 4cfe4c576ed4ea00f965a3d768a3d51b5d599a32..a3050ee079d6bded60810a88cf7e6cef196aa1f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-05-18  Colin Watson  <cjwatson@ubuntu.com>
+
+       Fix build with non-GNU libcs.
+
+       * util/misc.c (canonicalize_file_name): Move to ...
+       * kern/emu/misc.c (canonicalize_file_name): ... here.  Needed by
+       grub_make_system_path_relative_to_its_root.
+
 2010-05-18  Colin Watson  <cjwatson@ubuntu.com>
 
        * util/grub-mkrescue.in: Sync up with grub-install in terms of how
index 4888f4a6b100d4bb0f16addec4079a5fc47484d8..54c808a4785740fd53cd9125e617d5116fd6f8ab 100644 (file)
@@ -176,6 +176,19 @@ grub_get_rtc (void)
             * GRUB_TICKS_PER_SECOND / 1000000));
 }
 
+char *
+canonicalize_file_name (const char *path)
+{
+  char *ret;
+#ifdef PATH_MAX
+  ret = xmalloc (PATH_MAX);
+  (void) realpath (path, ret);
+#else
+  ret = realpath (path, NULL);
+#endif
+  return ret;
+}
+
 #ifdef __CYGWIN__
 /* Convert POSIX path to Win32 path,
    remove drive letter, replace backslashes.  */
index 6785eb00f08c6bbf87489478b6d1ba9d3dd2ba43..46e5c60930bb21c131695c3be50322ba573e6148 100644 (file)
@@ -286,19 +286,6 @@ fail:
 
 #endif /* __MINGW32__ */
 
-char *
-canonicalize_file_name (const char *path)
-{
-  char *ret;
-#ifdef PATH_MAX
-  ret = xmalloc (PATH_MAX);
-  (void) realpath (path, ret);
-#else
-  ret = realpath (path, NULL);
-#endif
-  return ret;
-}
-
 #ifdef GRUB_UTIL
 void
 grub_util_init_nls (void)