From fbfb84e623787c68f78eb526b63efb3317a88306 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor <ian@gcc.gnu.org> Date: Wed, 28 Sep 2011 13:14:11 +0000 Subject: [PATCH] mksysinfo: #include <ttold.h> on Irix. From Rainer Orth. From-SVN: r179312 --- libgo/mksysinfo.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 85dd33c65d09..f959d640fdc8 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -36,9 +36,12 @@ cat > sysinfo.c <<EOF #include <netinet/in.h> /* <netinet/tcp.h> needs u_char/u_short, but <sys/bsd_types> is only included by <netinet/in.h> if _SGIAPI (i.e. _SGI_SOURCE - && !_XOPEN_SOURCE. */ + && !_XOPEN_SOURCE. + <sys/termios.h> only defines TIOCNOTTY if !_XOPEN_SOURCE, while + <sys/ttold.h> does so unconditionally. */ #ifdef __sgi__ #include <sys/bsd_types.h> +#include <sys/ttold.h> #endif #include <netinet/tcp.h> #include <signal.h> -- GitLab