brick_say: use mars_rename at MARS_HAS_PREPATCH_V2

This commit is contained in:
Thomas Schoebel-Theuer 2021-01-27 11:49:50 +01:00 committed by Thomas Schoebel-Theuer
parent 31bb5cb182
commit f21c58c480
1 changed files with 3 additions and 1 deletions

View File

@ -768,7 +768,9 @@ void _rollover_channel(struct say_channel *ch)
oldfs = get_fs();
set_fs(get_ds());
#ifdef MARS_HAS_PREPATCH
#ifdef MARS_HAS_PREPATCH_V2
mars_rename(old, new);
#elif defined(MARS_HAS_PREPATCH)
sys_rename(old, new);
#else
_compat_rename(old, new);