summaryrefslogtreecommitdiff
path: root/build/jlibtool.c
diff options
context:
space:
mode:
authorjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>2005-10-24 13:57:16 +0000
committerjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>2005-10-24 13:57:16 +0000
commit6b8e2ee473ae75d6cd6e8d6b369552b21b246916 (patch)
treea4fd9778d38852f76b62d0285b7630cd306163dd /build/jlibtool.c
parent9c50a22b4f5b0d4f5556809ac837d68ae38458db (diff)
downloadlibapr-6b8e2ee473ae75d6cd6e8d6b369552b21b246916.tar.gz
basename() is defined in string.h, use libtool_basebase().
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@328072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/jlibtool.c')
-rw-r--r--build/jlibtool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/jlibtool.c b/build/jlibtool.c
index 22753414e..7266b0919 100644
--- a/build/jlibtool.c
+++ b/build/jlibtool.c
@@ -1259,7 +1259,7 @@ int parse_output_file_name(char *arg, command_t *cmd_data)
}
/* returns just a file's name without the path */
-const char *basename(const char *fullpath)
+const char *jlibtool_basename(const char *fullpath)
{
const char *name = strrchr(fullpath, '/');
@@ -1282,7 +1282,7 @@ const char *nameof(const char *fullpath)
const char *name;
const char *ext;
- name = basename(fullpath);
+ name = jlibtool_basename(fullpath);
ext = strrchr(name, '.');
if (ext) {
@@ -1673,7 +1673,7 @@ int run_mode(command_t *cmd_data)
size_t len1, len2;
len1 = strlen(cmd_data->arglist->vals[cmd_data->arglist->num - 1]);
- static_lib_name = basename(cmd_data->static_name.install);
+ static_lib_name = jlibtool_basename(cmd_data->static_name.install);
len2 = strlen(static_lib_name);
tmp = malloc(len1 + len2 + 2);