diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-04 06:23:37 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-04 06:23:37 +0000 |
commit | 05a5342b644edd9d76d7f73d90903eadaf397b88 (patch) | |
tree | 71fb82c9238e157ef7c7d56141da722235ebdea2 /libgo | |
parent | 50e65818c767077df87ddcf9c4304f495e587e3a (diff) | |
download | gcc-05a5342b644edd9d76d7f73d90903eadaf397b88.tar.gz |
mksysinfo: Fix TIOCNOTTY and TIOCSCTTY for ARM.
From Matthias Klose.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194118 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/mksysinfo.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 3688c530d06..ed585d62f51 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -168,6 +168,12 @@ enum { #ifdef TIOCGWINSZ TIOCGWINSZ_val = TIOCGWINSZ, #endif +#ifdef TIOCNOTTY + TIOCNOTTY_val = TIOCNOTTY, +#endif +#ifdef TIOCSCTTY + TIOCSCTTY_val = TIOCSCTTY, +#endif }; EOF @@ -725,6 +731,16 @@ if ! grep '^const TIOCGWINSZ' ${OUT} >/dev/null 2>&1; then echo 'const TIOCGWINSZ = _TIOCGWINSZ_val' >> ${OUT} fi fi +if ! grep '^const TIOCNOTTY' ${OUT} >/dev/null 2>&1; then + if grep '^const _TIOCNOTTY_val' ${OUT} >/dev/null 2>&1; then + echo 'const TIOCNOTTY = _TIOCNOTTY_val' >> ${OUT} + fi +fi +if ! grep '^const TIOCSCTTY' ${OUT} >/dev/null 2>&1; then + if grep '^const _TIOCSCTTY_val' ${OUT} >/dev/null 2>&1; then + echo 'const TIOCSCTTY = _TIOCSCTTY_val' >> ${OUT} + fi +fi # The ioctl flags for terminal control grep '^const _TC[GS]ET' gen-sysinfo.go | \ |