diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-24 19:00:44 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-24 19:00:44 +0000 |
commit | 447002cc56e7eab79142c2e1cc48e06bd60a83e4 (patch) | |
tree | 7794abaf84d6272d3dd6cac42efff1b38479076f /libgo | |
parent | 4cf82c8f62fc83ebd5438500228eb0db7e60320e (diff) | |
download | gcc-447002cc56e7eab79142c2e1cc48e06bd60a83e4.tar.gz |
mksysinfo: Define SIGPOLL and SIGCLD if necessary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/mksysinfo.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 315d60cc39d..12e0310bb43 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -225,6 +225,16 @@ done grep '^const _SIG[^_]' gen-sysinfo.go | \ grep -v '^const _SIGEV_' | \ sed -e 's/^\(const \)_\(SIG[^= ]*\)\(.*\)$/\1\2 = Signal(_\2)/' >> ${OUT} +if ! grep '^const SIGPOLL ' ${OUT} >/dev/null 2>&1; then + if grep '^const SIGIO ' ${OUT} > /dev/null 2>&1; then + echo "const SIGPOLL = SIGIO" >> ${OUT} + fi +fi +if ! grep '^const SIGCLD ' ${OUT} >/dev/null 2>&1; then + if grep '^const SIGCHLD ' ${OUT} >/dev/null 2>&1; then + echo "const SIGCLD = SIGCHLD" >> ${OUT} + fi +fi # The syscall numbers. We force the names to upper case. grep '^const _SYS_' gen-sysinfo.go | \ |