From 397f2e93f23bfe037f94cb3dbb2df63852afd21f Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 18 Oct 2022 12:10:08 +0200 Subject: [PATCH] say: adapt to prepatch series v3 --- kernel/brick_say.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/brick_say.c b/kernel/brick_say.c index e262d7a8..c05657a9 100644 --- a/kernel/brick_say.c +++ b/kernel/brick_say.c @@ -58,7 +58,8 @@ #include "compat.h" -#ifdef MARS_HAS_PREPATCH_V2 +#if defined(MARS_HAS_PREPATCH_V2) || \ + defined(MARS_HAS_PREPATCH_V3) /* needed for mars_rename() */ #include "sy_old/strategy.h" #endif @@ -786,7 +787,8 @@ void _rollover_channel(struct say_channel *ch) oldfs = get_fs(); set_fs(KERNEL_DS); -#ifdef MARS_HAS_PREPATCH_V2 +#if defined(MARS_HAS_PREPATCH_V2) || \ + defined(MARS_HAS_PREPATCH_V3) mars_rename(old, new); #elif defined(MARS_HAS_PREPATCH) sys_rename(old, new);