From 18cb05d232463a08cbd615668aae6b86f76faae7 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 13 Jan 2017 19:23:49 -0200 Subject: [PATCH] Fix build on FreeBSD (#1381) Including is required on FreeBSD for WIFEXITED and another couple of macros. This includes sys/types.h and sys/wait.h always as described in waitpid(2). --- spawn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spawn.c b/spawn.c index 3e89ca23..57b369dd 100644 --- a/spawn.c +++ b/spawn.c @@ -53,6 +53,9 @@ #include "spawn.h" +#include +#include + #include #include