From e0748fb2ba8994c136bcc0b67d3044f09841cf8e Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 19 Oct 2020 12:44:32 -0400 Subject: [PATCH] port: tests: Add sys/wait.h include for FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Required for WIFEXITED and WEXITSTATUS. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau Change-Id: Iaf3b95bfe048eab43b8ecb6c8837bc5a5242828d --- tests/ctf-writer/ctf_writer.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1