From e99eee55d862000ba196af11c0c0d10a6fee2ee9 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 29 Jul 2020 23:45:23 -0500 Subject: [PATCH] CmdHelp: Include wait.h for exit() support. Fixes the following errors when compiling on FreeBSD 12.1: [ 75%] Building CXX object src/commands/CMakeFiles/commands.dir/CmdHelp.cpp.o /home/user/timew-1.3.0/src/commands/CmdHelp.cpp:123:13: error: use of undeclared identifier 'WIFEXITED' return (WIFEXITED (ret)) ? WEXITSTATUS (ret) : -1; ^ /home/user/timew-1.3.0/src/commands/CmdHelp.cpp:123:32: error: use of undeclared identifier 'WEXITSTATUS' return (WIFEXITED (ret)) ? WEXITSTATUS (ret) : -1; ^ 2 errors generated. *** Error code 1 Thanks @kbcb Related to issue #258 Signed-off-by: Shaun Ruffell --- src/commands/CmdHelp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/CmdHelp.cpp b/src/commands/CmdHelp.cpp index 5da034b1..4ea79780 100644 --- a/src/commands/CmdHelp.cpp +++ b/src/commands/CmdHelp.cpp @@ -24,6 +24,9 @@ // //////////////////////////////////////////////////////////////////////////////// +#include +#include + #include #include #include