build: Include sys/wait.h in commandtest.c

Commit 631923e used a few macros from sys/wait.h without including
it. On Linux, they were also defined in stdlib.h, but on FreeBSD
the build failed:

../../tests/commandtest.c: In function 'test1':
warning: implicit declaration of function 'WIFEXITED'
warning: nested extern declaration of 'WIFEXITED' [-Wnested-externs]
This commit is contained in:
Ján Tomko 2014-03-04 08:39:56 +01:00
parent b75c7bd6b9
commit 460e42b13b

View File

@ -26,6 +26,7 @@
#include <unistd.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include "testutils.h"