You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
969 B

  1. From 59d37af2d6afd3d0ab6e8c5f3ea099435150c349 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Tue, 2 Jun 2020 15:55:25 -0700
  4. Subject: [PATCH] add missing unistd header
  5. Error with pid_t.
  6. Found with musl + libcxx.
  7. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  8. ---
  9. src/util/process.h | 2 ++
  10. src/util/process_executor.h | 2 ++
  11. 2 files changed, 4 insertions(+)
  12. diff --git a/src/util/process.h b/src/util/process.h
  13. index e79e016c..8778aa34 100644
  14. --- a/src/util/process.h
  15. +++ b/src/util/process.h
  16. @@ -35,6 +35,8 @@
  17. #include <memory>
  18. #include <string>
  19. +#include <unistd.h>
  20. +
  21. // forward declaration
  22. class Config;
  23. diff --git a/src/util/process_executor.h b/src/util/process_executor.h
  24. index eaccf451..2a724087 100644
  25. --- a/src/util/process_executor.h
  26. +++ b/src/util/process_executor.h
  27. @@ -35,6 +35,8 @@
  28. #include <string>
  29. #include <vector>
  30. +#include <unistd.h>
  31. +
  32. #include "executor.h"
  33. class ProcessExecutor : public Executor {