2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-19 04:22:15 +00:00

remove :: from dirfd

closes #461
This commit is contained in:
Klemens Morgenstern
2025-02-27 10:12:55 +08:00
parent 8ae055bfbd
commit d7df711628
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ void close_all(const std::vector<int> & whitelist, error_code & ec)
return ;
}
auto dir_fd = ::dirfd(dir.get());
auto dir_fd = dirfd(dir.get());
if (dir_fd == -1)
{
ec = BOOST_PROCESS_V2_NAMESPACE::detail::get_last_error();

View File

@@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE(leak_test, *boost::unit_test::timeout(5))
BOOST_CHECK(!bt::is_stream_handle(event_fd , ec)); BOOST_CHECK_MESSAGE(!ec, ec.message());
#endif
auto od = ::opendir(".");
int dir_fd = ::dirfd(od);
int dir_fd = dirfd(od);
BOOST_CHECK(!bt::is_stream_handle(dir_fd , ec)); BOOST_CHECK_MESSAGE(!ec, ec.message());
#endif