aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-04-20 16:09:30 +0200
committerGitHub <noreply@github.com>2021-04-20 16:09:30 +0200
commitb60b0d62d6a65ad8051a24cf4d4e6c50d27abf6a (patch)
tree52322593344c4b176c142d1faeda0a61caf85263
parent3cbad4b035939b99683265118d4f01c4b21a7a19 (diff)
parent9ac6534f7c39db34d872520b6341bcaa9b2c4a39 (diff)
Merge pull request #4720 from alyssais/wait
Include sys/wait.h everywhere WIFEXITED etc is used
-rw-r--r--src/libfetchers/git.cc1
-rw-r--r--src/libstore/build/derivation-goal.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc
index b9a240b13..d8e0dbe0a 100644
--- a/src/libfetchers/git.cc
+++ b/src/libfetchers/git.cc
@@ -6,6 +6,7 @@
#include "url-parts.hh"
#include <sys/time.h>
+#include <sys/wait.h>
using namespace std::string_literals;
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index 3ce538f77..55ced2215 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
+#include <sys/wait.h>
#include <netdb.h>
#include <fcntl.h>
#include <termios.h>