From 8fc776833f83c417d57c43f41479bc034c3863c6 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 8 May 2019 13:22:33 +0200 Subject: portability fixes, some modernization --- vt.c | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'vt.c') diff --git a/vt.c b/vt.c index 9b5a2d7..1a0b614 100644 --- a/vt.c +++ b/vt.c @@ -8,13 +8,15 @@ #include #include -#include -#include - #include "vt.h" /* -------------------------------------------------------------------- */ +#ifdef SYSTEM_LINUX + +#include +#include + #define CONSOLE_ACTIVE 0 #define CONSOLE_REL_REQ 1 #define CONSOLE_INACTIVE 2 @@ -167,3 +169,26 @@ int console_activate_current(void) } return 0; } + +/* -------------------------------------------------------------------- */ + +#else /* SYSTEM_LINUX */ + +int console_visible = 1; + +int console_switch_init(void (*suspend)(void), + void (*resume)(void)) +{ + return -1; +} + +void console_switch_cleanup(void) +{ +} + +int check_console_switch(void) +{ + return 0; +} + +#endif /* SYSTEM_LINUX */ -- cgit