summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/unix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-06-18 15:22:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-06-18 15:22:35 +0000
commit9a6994b490379074f546c395cb6d232cb1501348 (patch)
tree1e9a0c27d18cdbd202e0284d48a026807c6368c7 /cpukit/score/cpu/unix
parentCorrected so it returns the correct date. Previously was getting the number (diff)
downloadrtems-9a6994b490379074f546c395cb6d232cb1501348.tar.bz2
Added freebsd support from Dario Alcocer <alcocer@connectnet.com>.
Diffstat (limited to 'cpukit/score/cpu/unix')
-rw-r--r--cpukit/score/cpu/unix/cpu.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c
index 5b927b7a40..796d46d267 100644
--- a/cpukit/score/cpu/unix/cpu.c
+++ b/cpukit/score/cpu/unix/cpu.c
@@ -152,8 +152,12 @@ void _CPU_Signal_initialize( void )
sigaction(SIGUSR1, &act, 0);
sigaction(SIGUSR2, &act, 0);
sigaction(SIGCHLD, &act, 0);
+#ifdef SIGCLD
sigaction(SIGCLD, &act, 0);
+#endif
+#ifdef SIGPWR
sigaction(SIGPWR, &act, 0);
+#endif
sigaction(SIGVTALRM, &act, 0);
sigaction(SIGPROF, &act, 0);
sigaction(SIGIO, &act, 0);
@@ -741,9 +745,10 @@ void _CPU_Stray_signal(int sig_num)
switch (sig_num)
{
+#ifdef SIGCLD
case SIGCLD:
break;
-
+#endif
default:
{
/*
@@ -987,7 +992,7 @@ void _CPU_SHM_Init(
help.val = 1;
status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD__)
union semun help;
help.val = 1;