Message ID | yddsjnh3qnu.fsf@manam.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes: > Thanks, I'd missed that. It turned out that IRIX 6 needs one more > change to return to bootstrap land: <sys/termios.h> only defines > TIOCNOTTY if !_XOPEN_SOURCE, which we need for other stuff > (cf. configure.ac). I've cheated and use <sys/ttold.h> instead, which > doesn't have this check. With this patch, a Go-only IRIX 6.5 bootstrap > completed successfully. Thanks. Committed to mainline. Ian
# HG changeset patch # Parent 4530aeaf12a2b1576a7bf67de9cf5569719107c6 Provide TIOCNOTTY on IRIX 6 diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh --- 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>