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.
This commit is contained in:
Colin Watson 2010-05-18 11:57:31 +01:00
parent 7fb5c25fd0
commit 355b51e9b5
3 changed files with 21 additions and 13 deletions

View 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)