Index: libcxx/test/support/filesystem_test_helper.h =================================================================== --- libcxx/test/support/filesystem_test_helper.h +++ libcxx/test/support/filesystem_test_helper.h @@ -72,12 +72,8 @@ using ::ftruncate; inline int symlink(const char* oldname, const char* newname, bool is_dir) { (void)is_dir; return ::symlink(oldname, newname); } using ::link; - inline int setenv(const char *var, const char *val, int overwrite) { - return ::setenv(var, val, overwrite); - } - inline int unsetenv(const char *var) { - return ::unsetenv(var); - } + using ::setenv; + using ::unsetenv; inline bool space(std::string path, std::uintmax_t &capacity, std::uintmax_t &free, std::uintmax_t &avail) { struct statvfs expect;