mirror of
https://github.com/schoebel/mars
synced 2024-12-25 16:12:45 +00:00
say: adapt to prepatch series v3
This commit is contained in:
parent
c2ee9e0a19
commit
397f2e93f2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user