mirror of git://gcc.gnu.org/git/gcc.git
mksysinfo: Make sure EPOLL_CLOEXEC is defined.
From-SVN: r183168
This commit is contained in:
parent
932c774427
commit
daeae9f196
|
@ -193,10 +193,13 @@ grep '^const __PC' gen-sysinfo.go |
|
||||||
# epoll constants.
|
# epoll constants.
|
||||||
grep '^const _EPOLL' gen-sysinfo.go |
|
grep '^const _EPOLL' gen-sysinfo.go |
|
||||||
sed -e 's/^\(const \)_\(EPOLL[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
sed -e 's/^\(const \)_\(EPOLL[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||||
# Make sure EPOLLRDHUP is defined.
|
# Make sure EPOLLRDHUP and EPOLL_CLOEXEC are defined.
|
||||||
if ! grep '^const EPOLLRDHUP' ${OUT} >/dev/null 2>&1; then
|
if ! grep '^const EPOLLRDHUP' ${OUT} >/dev/null 2>&1; then
|
||||||
echo "const EPOLLRDHUP = 0x2000" >> ${OUT}
|
echo "const EPOLLRDHUP = 0x2000" >> ${OUT}
|
||||||
fi
|
fi
|
||||||
|
if ! grep '^const EPOLL_CLOEXEC' ${OUT} >/dev/null 2>&1; then
|
||||||
|
echo "const EPOLL_CLOEXEC = 02000000" >> ${OUT}
|
||||||
|
fi
|
||||||
|
|
||||||
# Ptrace constants.
|
# Ptrace constants.
|
||||||
grep '^const _PTRACE' gen-sysinfo.go |
|
grep '^const _PTRACE' gen-sysinfo.go |
|
||||||
|
|
Loading…
Reference in New Issue