diff options
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/mksysinfo.sh | 8 |
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} |