mksysinfo: Fix TIOCNOTTY and TIOCSCTTY for ARM.

From Matthias Klose.

From-SVN: r194118
This commit is contained in:
Ian Lance Taylor 2012-12-04 06:23:37 +00:00
parent 4731f878b7
commit 98fd70c20f
1 changed files with 16 additions and 0 deletions

View File

@ -168,6 +168,12 @@ enum {
#ifdef TIOCGWINSZ #ifdef TIOCGWINSZ
TIOCGWINSZ_val = TIOCGWINSZ, TIOCGWINSZ_val = TIOCGWINSZ,
#endif #endif
#ifdef TIOCNOTTY
TIOCNOTTY_val = TIOCNOTTY,
#endif
#ifdef TIOCSCTTY
TIOCSCTTY_val = TIOCSCTTY,
#endif
}; };
EOF EOF
@ -725,6 +731,16 @@ if ! grep '^const TIOCGWINSZ' ${OUT} >/dev/null 2>&1; then
echo 'const TIOCGWINSZ = _TIOCGWINSZ_val' >> ${OUT} echo 'const TIOCGWINSZ = _TIOCGWINSZ_val' >> ${OUT}
fi fi
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 # The ioctl flags for terminal control
grep '^const _TC[GS]ET' gen-sysinfo.go | \ grep '^const _TC[GS]ET' gen-sysinfo.go | \