Commit 1c47a3bf by Ian Lance Taylor

mksysinfo.sh: Handle TIOCSPGRP if too complex for -fdump-go-spec.

    
    Reviewed-on: https://go-review.googlesource.com/16534

From-SVN: r229645
parent 2e4e655c
65ff1d5fb581717229e5c02796d719671a1e8628 6b4b969f552b8f9ac87a715d5ad06e52bd031b60
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -183,6 +183,9 @@ enum { ...@@ -183,6 +183,9 @@ enum {
#ifdef TIOCSCTTY #ifdef TIOCSCTTY
TIOCSCTTY_val = TIOCSCTTY, TIOCSCTTY_val = TIOCSCTTY,
#endif #endif
#ifdef TIOCSPGRP
TIOCSPGRP_val = TIOCSPGRP,
#endif
#ifdef TIOCGPTN #ifdef TIOCGPTN
TIOCGPTN_val = TIOCGPTN, TIOCGPTN_val = TIOCGPTN,
#endif #endif
...@@ -917,6 +920,11 @@ if ! grep '^const TIOCSCTTY' ${OUT} >/dev/null 2>&1; then ...@@ -917,6 +920,11 @@ if ! grep '^const TIOCSCTTY' ${OUT} >/dev/null 2>&1; then
echo 'const TIOCSCTTY = _TIOCSCTTY_val' >> ${OUT} echo 'const TIOCSCTTY = _TIOCSCTTY_val' >> ${OUT}
fi fi
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}
fi
fi
if ! grep '^const TIOCGPTN' ${OUT} >/dev/null 2>&1; then if ! grep '^const TIOCGPTN' ${OUT} >/dev/null 2>&1; then
if grep '^const _TIOCGPTN_val' ${OUT} >/dev/null 2>&1; then if grep '^const _TIOCGPTN_val' ${OUT} >/dev/null 2>&1; then
echo 'const TIOCGPTN = _TIOCGPTN_val' >> ${OUT} echo 'const TIOCGPTN = _TIOCGPTN_val' >> ${OUT}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment