mksysinfo.sh: Handle TIOCSPGRP if too complex for -fdump-go-spec.
authorIan Lance Taylor <ian@gcc.gnu.org>
Sun, 1 Nov 2015 20:51:23 +0000 (20:51 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sun, 1 Nov 2015 20:51:23 +0000 (20:51 +0000)
    Reviewed-on: https://go-review.googlesource.com/16534

From-SVN: r229645

gcc/go/gofrontend/MERGE
libgo/mksysinfo.sh

index e30927f6998b796a0ef25161f90843717243b743..6216047500b4bf8736ea67be5b9ab538dcc78336 100644 (file)
@@ -1,4 +1,4 @@
-65ff1d5fb581717229e5c02796d719671a1e8628
+6b4b969f552b8f9ac87a715d5ad06e52bd031b60
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 407c12c43bc001fcafa2f768b841a3d86ad9ff98..eb44acf4dc16ecfb0e669ad385ae814ad8b6cf50 100755 (executable)
@@ -183,6 +183,9 @@ enum {
 #ifdef TIOCSCTTY
   TIOCSCTTY_val = TIOCSCTTY,
 #endif
+#ifdef TIOCSPGRP
+  TIOCSPGRP_val = TIOCSPGRP,
+#endif
 #ifdef TIOCGPTN
   TIOCGPTN_val = TIOCGPTN,
 #endif
@@ -917,6 +920,11 @@ if ! grep '^const TIOCSCTTY' ${OUT} >/dev/null 2>&1; then
     echo 'const TIOCSCTTY = _TIOCSCTTY_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}
+  fi
+fi
 if ! grep '^const TIOCGPTN' ${OUT} >/dev/null 2>&1; then
   if grep '^const _TIOCGPTN_val' ${OUT} >/dev/null 2>&1; then
     echo 'const TIOCGPTN = _TIOCGPTN_val' >> ${OUT}