mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-28 22:11:21 +08:00
mksysinfo: Fix for systems that don't define TIOCSCTTY.
From Rainer Orth. From-SVN: r179269
This commit is contained in:
parent
0578e4172d
commit
3019bbaeb3
@ -499,6 +499,14 @@ grep '^type _passwd ' gen-sysinfo.go | \
|
||||
grep '^const _TIOC' gen-sysinfo.go | \
|
||||
sed -e 's/^\(const \)_\(TIOC[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||
|
||||
# ioctl constants. Might fall back to 0 if TIOCNXCL is missing, too, but
|
||||
# needs handling in syscalls.exec.go.
|
||||
if ! grep '^const _TIOCSCTTY ' gen-sysinfo.go >/dev/null 2>&1; then
|
||||
if grep '^const _TIOCNXCL ' gen-sysinfo.go >/dev/null 2>&1; then
|
||||
echo "const TIOCSCTTY = TIOCNXCL" >> ${OUT}
|
||||
fi
|
||||
fi
|
||||
|
||||
# The nlmsghdr struct.
|
||||
grep '^type _nlmsghdr ' gen-sysinfo.go | \
|
||||
sed -e 's/_nlmsghdr/NlMsghdr/' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user