From 59d37af2d6afd3d0ab6e8c5f3ea099435150c349 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Tue, 2 Jun 2020 15:55:25 -0700
Subject: [PATCH] add missing unistd header

Error with pid_t.

Found with musl + libcxx.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 src/util/process.h          | 2 ++
 src/util/process_executor.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/util/process.h b/src/util/process.h
index e79e016c..8778aa34 100644
--- a/src/util/process.h
+++ b/src/util/process.h
@@ -35,6 +35,8 @@
 #include <memory>
 #include <string>
 
+#include <unistd.h>
+
 // forward declaration
 class Config;
 
diff --git a/src/util/process_executor.h b/src/util/process_executor.h
index eaccf451..2a724087 100644
--- a/src/util/process_executor.h
+++ b/src/util/process_executor.h
@@ -35,6 +35,8 @@
 #include <string>
 #include <vector>
 
+#include <unistd.h>
+
 #include "executor.h"
 
 class ProcessExecutor : public Executor {
