From 1911289ef16fdd0bc3c6b7f5189e1781fd990946 Mon Sep 17 00:00:00 2001 From: Sye van der Veen Date: Sun, 21 Jan 2024 10:13:03 -0500 Subject: [PATCH] Fix build when both MUNIT_NO_BUFFER and MUNIT_NO_FORK are defined --- munit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/munit.c b/munit.c index 00ede07..646b899 100644 --- a/munit.c +++ b/munit.c @@ -1251,7 +1251,7 @@ munit_test_runner_print_color(const MunitTestRunner* runner, const char* string, fputs(string, MUNIT_OUTPUT_FILE); } -#if !defined(MUNIT_NO_BUFFER) +#if !defined(MUNIT_NO_BUFFER) || !defined(MUNIT_NO_FORK) static int munit_replace_stderr(FILE* stderr_buf) { if (stderr_buf != NULL) {