summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-28 13:14:11 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-28 13:14:11 +0000
commit0469ed088867b0b88267c4c50d77bf61bbb73528 (patch)
treed483c9d8372a2d6cbdfce3fbd361168509253fec /libgo
parent5396abe37a80a2c7c76977b3febb1ed25f9fb271 (diff)
downloadgcc-0469ed088867b0b88267c4c50d77bf61bbb73528.tar.gz
mksysinfo: #include <ttold.h> on Irix.
From Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179312 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mksysinfo.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 85dd33c65d0..f959d640fdc 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>