From: BenjaminTrapani Date: Wed, 17 Jan 2018 19:08:31 +0000 (-0500) Subject: Fix bsdtar test compilation on windows with platform toolset 141 X-Git-Tag: v3.3.3~20^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26b7648b964ed76a1d3ac83fb3baa3479ba551bb;p=thirdparty%2Flibarchive.git Fix bsdtar test compilation on windows with platform toolset 141 --- diff --git a/tar/test/test_option_fflags.c b/tar/test/test_option_fflags.c index 77a4e3e19..f223feb19 100644 --- a/tar/test/test_option_fflags.c +++ b/tar/test/test_option_fflags.c @@ -25,6 +25,10 @@ #include "test.h" __FBSDID("$FreeBSD$"); +#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__BORLANDC__) +#define chmod _chmod +#endif + static void clear_fflags(const char *pathname) {