Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
saleyn authored Sep 1, 2024
1 parent 29ed3bd commit 3a46e23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c_src/exec_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ static int getpty(int& fdmp, ei::StringBuffer<128>& err) {
return 0;
}

#ifdef HAVE_CAP
struct Caps {
Caps() : m_caps(cap_get_proc()) {}
~Caps() { if (m_caps) cap_free(m_caps); }
Expand All @@ -377,6 +378,7 @@ struct Caps {
cap_t m_caps;
std::vector<cap_value_t> m_cap_list;
};
#endif

//------------------------------------------------------------------------------
bool propagate_caps(ei::StringBuffer<128>& err)
Expand Down

0 comments on commit 3a46e23

Please sign in to comment.