Commit 42a5b2db authored by Keir Fraser's avatar Keir Fraser

xenconsole: Compile fixes for console code on Solaris

Signed-off-by: default avatarJohn Levon <>
parent d087d47f
......@@ -71,6 +71,21 @@ static void usage(const char *program) {
, program);
#ifdef __sun__
void cfmakeraw (struct termios *termios_p)
termios_p->c_iflag &=
termios_p->c_oflag &= ~OPOST;
termios_p->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
termios_p->c_cflag &= ~(CSIZE|PARENB);
termios_p->c_cflag |= CS8;
termios_p->c_cc[VMIN] = 0;
termios_p->c_cc[VTIME] = 0;
static int get_pty_fd(struct xs_handle *xs, char *path, int seconds)
/* Check for a pty in xenstore, open it and return its fd.
* Assumes there is already a watch set in the store for this path. */
......@@ -86,7 +86,9 @@ int main(int argc, char **argv)
case 'v':
#ifndef __sun__
syslog_option |= LOG_PERROR;
syslog_mask = LOG_DEBUG;
case 'i':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment