Skip to content

Commit

Permalink
Another compile-time fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Jun 12, 2015
1 parent 597529f commit 5425668
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions grub-core/osdep/unix/emuconsole.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
#include <sys/ioctl.h>
#include <langinfo.h>

#ifdef BHYVE
#include <sys/param.h>

#include <termios.h>

#include <grub/emu/bhyve.h>
#endif

#include <grub/emu/console.h>

extern struct grub_terminfo_output_state grub_console_terminfo_output;
Expand All @@ -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)
{
Expand Down

0 comments on commit 5425668

Please sign in to comment.