From: Michihiro NAKAJIMA Date: Sun, 20 Dec 2009 04:23:05 +0000 (-0500) Subject: On Windows, don't use _strdup directly because Borland C X-Git-Tag: v2.8.0~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d03491792ccf969e1dbdb4a1ae8aa7c69ab7fe78;p=thirdparty%2Flibarchive.git On Windows, don't use _strdup directly because Borland C does not provide _strdup. SVN-Revision: 1765 --- diff --git a/tar/tree.c b/tar/tree.c index 5cd6cadf4..6504ebf7d 100644 --- a/tar/tree.c +++ b/tar/tree.c @@ -220,7 +220,7 @@ tree_push(struct tree *t, const char *path) te->name = strdup(path); #elif defined(_WIN32) && !defined(__CYGWIN__) te->symlink_parent_path = NULL; - te->name = _strdup(path); + te->name = strdup(path); #endif te->flags = needsDescent | needsOpen | needsAscent; te->dirname_length = t->dirname_length;