summaryrefslogtreecommitdiff
path: root/src/buildtool/system/system_command.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/system/system_command.hpp')
-rw-r--r--src/buildtool/system/system_command.hpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/buildtool/system/system_command.hpp b/src/buildtool/system/system_command.hpp
index 909c047a..86f63e6b 100644
--- a/src/buildtool/system/system_command.hpp
+++ b/src/buildtool/system/system_command.hpp
@@ -15,26 +15,28 @@
#ifndef INCLUDED_SRC_BUILDTOOL_SYSTEM_SYSTEM_COMMAND_HPP
#define INCLUDED_SRC_BUILDTOOL_SYSTEM_SYSTEM_COMMAND_HPP
-#include <array>
-#include <cerrno> // for errno
+#ifdef __unix__
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <unistd.h>
+#else
+#error "Non-unix is not supported yet"
+#endif
+
+#include <algorithm> // for transform
+#include <cerrno> // for errno
#include <cstdio>
-#include <cstring> // for strerror()
-#include <iostream>
+#include <cstdlib> // for EXIT_FAILURE, WEXITSTATUS, WIFEXITED, WIFSIGNALED, WTERMSIG
+#include <cstring> // for strerror()
+#include <filesystem> // for path, operator/
#include <iterator>
#include <map>
+#include <memory>
#include <optional>
-#include <sstream>
#include <string>
#include <utility> // std::move
#include <vector>
-#ifdef __unix__
-#include <sys/wait.h>
-#include <unistd.h>
-#else
-#error "Non-unix is not supported yet"
-#endif
-
#include "gsl/gsl"
#include "src/buildtool/file_system/file_system_manager.hpp"
#include "src/buildtool/logging/log_level.hpp"