mirror of
https://github.com/NixOS/nix
synced 2025-07-03 06:11:46 +02:00
Fix FreeBSD build
This restores some CPP'd code that was added inc18911602e
and accidentally lost in2477e4e3b8
. Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
e74ce01b7f
commit
7c2981fc55
4 changed files with 36 additions and 8 deletions
|
@ -25,6 +25,10 @@
|
|||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef _WIN32 // TODO abstract over proc exit status
|
||||
# include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
namespace nix {
|
||||
|
@ -1033,7 +1037,7 @@ void DerivationGoal::buildDone()
|
|||
|
||||
BuildResult::Status st = BuildResult::MiscFailure;
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifndef _WIN32 // TODO abstract over proc exit status
|
||||
if (hook && WIFEXITED(status) && WEXITSTATUS(status) == 101)
|
||||
st = BuildResult::TimedOut;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue