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.
This commit is contained in:
Anton Lundin
2012-11-23 11:29:31 +01:00
parent 993abf57f1
commit 73d39980f4
+5
View File
@@ -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 <termio.h>
#if defined HAVE_NCURSESW_CURSES_H
# include <ncursesw/curses.h>
#elif defined HAVE_NCURSESW_H