mksysinfo: #include <ttold.h> on Irix.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 28 Sep 2011 13:14:11 +0000 (13:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 28 Sep 2011 13:14:11 +0000 (13:14 +0000)
From Rainer Orth.

From-SVN: r179312

libgo/mksysinfo.sh

index 85dd33c65d093de9332f85750cbc316873bd0fa3..f959d640fdc8b2c8d78a45e5402233165864ad39 100755 (executable)
@@ -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>