diff --git a/src/include/fork.h b/src/include/fork.h index bd85b56..204c869 100644 --- a/src/include/fork.h +++ b/src/include/fork.h @@ -1,18 +1,19 @@ #ifndef FORK_H #define FORK_H #include <string> +#include <cstdint> #ifndef CXXBRIDGE1_ENUM_Fork #define CXXBRIDGE1_ENUM_Fork enum class Fork: std::uint8_t { Parent, Child }; #endif using Callback = void(*)(); pid_t set_sid(); void close_fd(); Fork fork_process(); extern "C" int32_t try_fork(bool nochdir, bool noclose, Callback callback); #endif