From 73d39980f4e22a115ccde35105d9a7801be17616 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Fri, 23 Nov 2012 11:29:31 +0100 Subject: [PATCH] Solaris term.h needs both termio.h and termios.h On solaris, the term.h pulls in termio.h and termios.h if it detects that they are not loaded. Because stmclient.h pulls in termios.h that breaks type definitions in term.h that needs termio.h. --- src/frontend/mosh-client.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/mosh-client.cc b/src/frontend/mosh-client.cc index ce28c8a..6172570 100644 --- a/src/frontend/mosh-client.cc +++ b/src/frontend/mosh-client.cc @@ -42,6 +42,11 @@ #include "fatal_assert.h" /* these need to be included last because of conflicting defines */ +/* + * stmclient.h includes termios.h, and that will break termio/termios pull in on solaris + * solution is to include termio.h allso. + */ +#include #if defined HAVE_NCURSESW_CURSES_H # include #elif defined HAVE_NCURSESW_H