Rainer Orth <r...@cebitec.uni-bielefeld.de> writes: > that does the trick to correctly define TIOCNOTTY and TIOCSCTTY on > Solaris. I'm currently running a i386-pc-solaris2.10 bootstrap with a > single-line change to mksysinfo.sh: > > diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh > --- a/libgo/mksysinfo.sh > +++ b/libgo/mksysinfo.sh > @@ -43,6 +43,7 @@ cat > sysinfo.c <<EOF > #include <netinet/tcp.h> > #include <signal.h> > #include <sys/ioctl.h> > +#include <termios.h> > #if defined(HAVE_SYSCALL_H) > #include <syscall.h> > #endif > > I'm undecided if I need to add an autoconf check for that file. At > least on Linux, IRIX, Solaris and Tru64 UNIX, it is present. I'll deal > with the replacement of TIOCSCTTY by TIOCNXCL on IRIX separately.
Thanks, I went ahead and committed this patch. <termios.h> was in POSIX.1 from 1986 or thereabouts, so I think it is safe to use today. Ian