Skip to content

Commit

Permalink
Fix missing include for std::runtime_error
Browse files Browse the repository at this point in the history
Would fail to compile on Fedora 32 with clang
  • Loading branch information
ekilmer authored and haampie committed Jun 9, 2020
1 parent 7d11c23 commit cec90af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <memory>
#include <array>
#include <stdexcept>

std::string exec(const char* cmd) {
std::array<char, 128> buffer;
Expand All @@ -15,4 +16,4 @@ std::string exec(const char* cmd) {
result += buffer.data();

return result;
}
}

0 comments on commit cec90af

Please sign in to comment.