* cppfiles.c (search_from): Use lbasename.
* mkdeps.c (deps_add_default_target): Use lbasename.
From-SVN: r40364
+2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * cppfiles.c (search_from): Use lbasename.
+ * mkdeps.c (deps_add_default_target): Use lbasename.
+
2001-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/server.c (load_data, run_shell): Use xmalloc, xrealloc &
2001-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/server.c (load_data, run_shell): Use xmalloc, xrealloc &
if (CPP_OPTION (pfile, ignore_srcdir))
return CPP_OPTION (pfile, quote_include);
if (CPP_OPTION (pfile, ignore_srcdir))
return CPP_OPTION (pfile, quote_include);
- /* basename () on Solaris returns "." for an empty string. */
- dlen = 0;
- if (inc->name[0] != '\0')
- dlen = basename (inc->name) - inc->name;
-
+ dlen = lbasename (inc->name) - inc->name;
if (dlen)
{
/* We don't guarantee NAME is null-terminated. This saves
if (dlen)
{
/* We don't guarantee NAME is null-terminated. This saves
#ifndef OBJECT_SUFFIX
# define OBJECT_SUFFIX ".o"
#endif
#ifndef OBJECT_SUFFIX
# define OBJECT_SUFFIX ".o"
#endif
- char *start = basename (tgt);
+ char *start = lbasename (tgt);
char *o = (char *) alloca (strlen (start) + strlen (OBJECT_SUFFIX) + 1);
char *suffix;
char *o = (char *) alloca (strlen (start) + strlen (OBJECT_SUFFIX) + 1);
char *suffix;