From f46715794213e9c7a86fa78f9ee7c15438cdf32b 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 Required for WIFEXITED and WEXITSTATUS. Signed-off-by: Michael Jeanson Change-Id: I2a74762da3ffba58a27fecc3c0d85cc9007bd7c4 --- 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 16430b79..af51363b 100644 --- a/tests/ctf-writer/ctf_writer.c +++ b/tests/ctf-writer/ctf_writer.c @@ -44,6 +44,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