* 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>
+
+ 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
* 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. */
#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)