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:
parent
e37f5d2eb1
commit
d8000bab0a
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue