@@ -22,6 +22,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+#include <libio.h>
#endif // _WIN32
static const size_t handle_buffer_size = 4096;
@@ -23,6 +23,7 @@
#include <sys/wait.h>
#include <sys/select.h>
#include <signal.h>
+#include <stdint.h>
// Clamps a value to two boundaries.
#define clamp(x, lb, hb) (x < lb ? lb : (x > hb ? hb : x))