Skip to content

Commit

Permalink
CmdHelp: Include wait.h for exit() support.
Browse files Browse the repository at this point in the history
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 GothenburgBitFactory#258

Signed-off-by: Shaun Ruffell <[email protected]>
  • Loading branch information
sruffell authored and lauft committed Aug 13, 2020
1 parent 566d14b commit e99eee5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/CmdHelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
//
////////////////////////////////////////////////////////////////////////////////

#include <sys/types.h>
#include <sys/wait.h>

#include <commands.h>
#include <algorithm>
#include <iostream>
Expand Down

0 comments on commit e99eee5

Please sign in to comment.