summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-02 20:23:09 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-02 20:23:09 +0000
commitbe2b07a5aa8c7e3f1496d56c4c26ae2ad1381740 (patch)
tree8c6e7e7d2dbc285b5a197455d55dc5f5240565c4 /libgo
parent62bab19e35ee734a3e9e4f56be5fa08e1f9875a2 (diff)
downloadlinaro-gcc-be2b07a5aa8c7e3f1496d56c4c26ae2ad1381740.tar.gz
linaro-gcc-be2b07a5aa8c7e3f1496d56c4c26ae2ad1381740.tar.bz2
linaro-gcc-be2b07a5aa8c7e3f1496d56c4c26ae2ad1381740.zip
mksysinfo.sh: Handle TIOCGPGRP if too complex for -dump-go-spec.
Reviewed-on: https://go-review.googlesource.com/16580 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229676 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mksysinfo.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index eb44acf4dc1..3bb7eabdcc8 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -183,6 +183,9 @@ enum {
#ifdef TIOCSCTTY
TIOCSCTTY_val = TIOCSCTTY,
#endif
+#ifdef TIOCGPGRP
+ TIOCGPGRP_val = TIOCGPGRP,
+#endif
#ifdef TIOCSPGRP
TIOCSPGRP_val = TIOCSPGRP,
#endif
@@ -920,6 +923,11 @@ if ! grep '^const TIOCSCTTY' ${OUT} >/dev/null 2>&1; then
echo 'const TIOCSCTTY = _TIOCSCTTY_val' >> ${OUT}
fi
fi
+if ! grep '^const TIOCGPGRP' ${OUT} >/dev/null 2>&1; then
+ if grep '^const _TIOCGPGRP_val' ${OUT} >/dev/null 2>&1; then
+ echo 'const TIOCGPGRP = _TIOCGPGRP_val' >> ${OUT}
+ fi
+fi
if ! grep '^const TIOCSPGRP' ${OUT} >/dev/null 2>&1; then
if grep '^const _TIOCSPGRP_val' ${OUT} >/dev/null 2>&1; then
echo 'const TIOCSPGRP = _TIOCSPGRP_val' >> ${OUT}