diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-08 13:22:33 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-08 13:22:33 +0200 |
commit | 8fc776833f83c417d57c43f41479bc034c3863c6 (patch) | |
tree | 2fbe3cd51de3947f8fc5144d17b2bd57eccb6271 /vt.c | |
parent | 63b5412f8c410694e8c67452452273ae8a9a6871 (diff) | |
download | fbida-8fc776833f83c417d57c43f41479bc034c3863c6.tar.gz |
portability fixes, some modernization
Diffstat (limited to 'vt.c')
-rw-r--r-- | vt.c | 31 |
1 files changed, 28 insertions, 3 deletions
@@ -8,13 +8,15 @@ #include <signal.h> #include <sys/ioctl.h> -#include <linux/kd.h> -#include <linux/vt.h> - #include "vt.h" /* -------------------------------------------------------------------- */ +#ifdef SYSTEM_LINUX + +#include <linux/kd.h> +#include <linux/vt.h> + #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 */ |