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:
@@ -42,6 +42,11 @@
|
|||||||
#include "fatal_assert.h"
|
#include "fatal_assert.h"
|
||||||
|
|
||||||
/* these need to be included last because of conflicting defines */
|
/* 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
|
#if defined HAVE_NCURSESW_CURSES_H
|
||||||
# include <ncursesw/curses.h>
|
# include <ncursesw/curses.h>
|
||||||
#elif defined HAVE_NCURSESW_H
|
#elif defined HAVE_NCURSESW_H
|
||||||
|
|||||||
Reference in New Issue
Block a user