]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mksysinfo: Define SIGPOLL and SIGCLD if necessary.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 24 Oct 2012 19:00:44 +0000 (19:00 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 24 Oct 2012 19:00:44 +0000 (19:00 +0000)
From-SVN: r192775

libgo/mksysinfo.sh

index 315d60cc39d881c8f4aafdfe448b4dbd81647124..12e0310bb43aac5d585e58bcb01f032e4153d771 100755 (executable)
@@ -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 | \