Ian,

>>> Is tIOC defined in gen-sysinfo.go?  In <sys/termios.h>?  Does some other
>>
>> Only as
>>
>> // unknowndefine tIOC ('t'<<8)
>
> Ah.
>
> I committed this patch which may fix this problem.  Bootstrapped and ran
> Go testsuite on x86_64-unknown-linux-gnu.  You'll have to remove
> TARGET/libgo/s-sysinfo to force sysinfo.go to be rebuilt.

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.
        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to