From: Michael Jeanson Date: Mon, 19 Oct 2020 16:44:32 +0000 (-0400) Subject: port: tests: Add sys/wait.h include for FreeBSD X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=e0748fb2ba8994c136bcc0b67d3044f09841cf8e port: tests: Add sys/wait.h include for FreeBSD Required for WIFEXITED and WEXITSTATUS. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau Change-Id: Iaf3b95bfe048eab43b8ecb6c8837bc5a5242828d --- diff --git a/tests/ctf-writer/ctf_writer.c b/tests/ctf-writer/ctf_writer.c index f45d5eb0..0b979ace 100644 --- a/tests/ctf-writer/ctf_writer.c +++ b/tests/ctf-writer/ctf_writer.c @@ -29,6 +29,11 @@ #include #include "common.h" +#ifdef __FreeBSD__ +/* Required for WIFEXITED and WEXITSTATUS */ +#include +#endif + #define METADATA_LINE_SIZE 512 #define SEQUENCE_TEST_LENGTH 10 #define ARRAY_TEST_LENGTH 5