Skip to content

Commit

Permalink
common jobserver - Fix linux compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Sep 22, 2023
1 parent d4f6734 commit 3503df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/common/jobserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class JobServer_Server: public JobServer
public:
JobServer_Server(size_t max_jobs)
: m_server(max_jobs)
, m_client(max_jobs, m_server.get_client_read_fd(), m_server.get_client_write_fd())
, m_client(m_server.get_client_read_fd(), m_server.get_client_write_fd())
{
::std::stringstream ss;
if(const auto* makeflags = getenv("MAKEFLAGS"))
Expand Down Expand Up @@ -266,7 +266,7 @@ ::std::unique_ptr<JobServer> JobServer::create(size_t server_jobs)
if( std::strncmp(auth_str.c_str(), "fifo:", 5) == 0 ) {
auto fd = open(auth_str.c_str() + 5, O_RDWR);
if(fd > 0) {
return ::std::make_unique<JobServer_Client>(max_jobs, fd);
return ::std::make_unique<JobServer_Client>(fd);
}
}
// - Unix pipe pair: `<fd_r>,<fd_w>`
Expand All @@ -278,7 +278,7 @@ ::std::unique_ptr<JobServer> JobServer::create(size_t server_jobs)
::std::cerr << "JobServer: Pipe FDs aren't open, likely missing `+` in makefile" << std::endl;
}
else {
return ::std::make_unique<JobServer_Client>(max_jobs, fd_r, fd_w);
return ::std::make_unique<JobServer_Client>(fd_r, fd_w);
}
}
else {
Expand Down

0 comments on commit 3503df0

Please sign in to comment.