This re-declares basename. The author, Ben Collver, told me:

"your workaround of changing it to u_basename() is fine" and
"We should not get rid of u_basename() because there are XFree86 supported
platforms that do not provide a basename() function in their libc."
This commit is contained in:
Jeremy C. Reed 2003-09-24 04:23:54 +00:00
parent e37f5d2eb1
commit d8000bab0a

View file

@ -58,7 +58,7 @@
/* global variable for argv[0] */
const char *my_name = NULL;
static char *basename(char *pathname)
static char *u_basename(char *pathname)
{
char *ptr;
@ -885,7 +885,7 @@ int main(int argc, char *argv[])
}
/* remove path prefix */
zstrcpy(&t, basename(fout));
zstrcpy(&t, u_basename(fout));
zstrcpy(&fout, t);
/* write new BDF file */