From b1914048285d627027ccd5df801c7d43ede0c060 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 21 Jun 2020 18:37:46 -0400 Subject: Include sys/select.h in subprocess-posix.cc pselect() is in sys/select.h in "newer" (2001) versions of posix, so add an include for it. While here, only include poll.h if USE_PPOLL is defined. --- src/subprocess-posix.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/subprocess-posix.cc b/src/subprocess-posix.cc index fc5543e..74785d1 100644 --- a/src/subprocess-posix.cc +++ b/src/subprocess-posix.cc @@ -18,13 +18,18 @@ #include #include #include -#include #include #include #include #include #include +#if defined(USE_PPOLL) +#include +#else +#include +#endif + extern char** environ; #include "util.h" -- cgit v0.12