Skip to content

Commit 8434611

Browse files
committed
fix: Missing includes
1 parent 2b3abd0 commit 8434611

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

plugins/builtin/source/content/providers/command_provider.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
#include <nlohmann/json.hpp>
1515
#include <wolv/utils/charconv.hpp>
1616

17+
#if defined(OS_WINDOWS)
18+
#include <windows.h>
19+
#else
20+
#include <unistd.h>
21+
#include <sys/types.h>
22+
#include <sys/wait.h>
23+
#include <fcntl.h>
24+
#endif
25+
1726
namespace hex::plugin::builtin {
1827

1928
using namespace std::chrono_literals;
@@ -163,7 +172,7 @@ namespace hex::plugin::builtin {
163172
close(stdoutPipe[1]);
164173

165174
if (!stdinData.empty()) {
166-
write(stdinPipe[1], stdinData.data(), stdinData.size());
175+
std::ignore = write(stdinPipe[1], stdinData.data(), stdinData.size());
167176
}
168177
close(stdinPipe[1]);
169178

0 commit comments

Comments
 (0)