diff --git a/grub-core/osdep/unix/emuconsole.c b/grub-core/osdep/unix/emuconsole.c index 7308798ef..80763654a 100644 --- a/grub-core/osdep/unix/emuconsole.c +++ b/grub-core/osdep/unix/emuconsole.c @@ -37,6 +37,14 @@ #include #include +#ifdef BHYVE +#include + +#include + +#include +#endif + #include extern struct grub_terminfo_output_state grub_console_terminfo_output; @@ -45,6 +53,17 @@ static int saved_orig; static struct termios orig_tty; static struct termios new_tty; +#ifdef BHYVE +static const char *g_cdev = NULL; + +void +grub_emu_bhyve_set_console_dev(const char *dev) +{ + + g_cdev = dev; +} +#endif + static void put (struct grub_term_output *term __attribute__ ((unused)), const int c) {