Skip to content

Commit 1911289

Browse files
committed
Fix build when both MUNIT_NO_BUFFER and MUNIT_NO_FORK are defined
1 parent fbbdf14 commit 1911289

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

munit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ munit_test_runner_print_color(const MunitTestRunner* runner, const char* string,
12511251
fputs(string, MUNIT_OUTPUT_FILE);
12521252
}
12531253

1254-
#if !defined(MUNIT_NO_BUFFER)
1254+
#if !defined(MUNIT_NO_BUFFER) || !defined(MUNIT_NO_FORK)
12551255
static int
12561256
munit_replace_stderr(FILE* stderr_buf) {
12571257
if (stderr_buf != NULL) {

0 commit comments

Comments
 (0)