Index: gdb/gdb_curses.h =================================================================== RCS file: /cvs/src/src/gdb/gdb_curses.h,v retrieving revision 1.4 diff -c -p -r1.4 gdb_curses.h *** gdb/gdb_curses.h 9 Nov 2004 00:59:03 -0000 1.4 --- gdb/gdb_curses.h 12 Nov 2004 02:35:21 -0000 *************** *** 35,40 **** --- 35,49 ---- #if defined (HAVE_NCURSES_TERM_H) #include #elif defined (HAVE_TERM_H) + #ifdef HAVE_TERMIO_H + /* Some definitions from termio are sometimes needed for term.h. + For instance, on Solaris 2.8, strm term contains two fields + named Ottyb and Nttyb of type SGTTY, which is defined as a + typedef of struct termio in term.h. Without including term.h, + the compiler has an incomplete definition of the type of these + two fields, and aborts the builds. */ + #include + #endif #include #endif