aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-12-04 06:23:37 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-12-04 06:23:37 +0000
commit98fd70c20f55a656de0c40a7f5fb982166c2ad34 (patch)
tree71fb82c9238e157ef7c7d56141da722235ebdea2 /libgo
parent4731f878b70eeb1f7e180334e7939e546b1478b4 (diff)
downloadgcc-98fd70c20f55a656de0c40a7f5fb982166c2ad34.zip
gcc-98fd70c20f55a656de0c40a7f5fb982166c2ad34.tar.gz
gcc-98fd70c20f55a656de0c40a7f5fb982166c2ad34.tar.bz2
mksysinfo: Fix TIOCNOTTY and TIOCSCTTY for ARM.
From Matthias Klose. From-SVN: r194118
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mksysinfo.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 3688c53..ed585d6 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 | \