diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-01-28 15:39:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-01-28 15:39:30 +0000 |
commit | 3a85d03d4ea7cc58afe403a5ac2430afe59f3102 (patch) | |
tree | ac79472f54117d9901b3fbccf6f114fc9f0a2505 /c/src/exec/score/cpu | |
parent | Fix from Eric Norum: (diff) | |
download | rtems-3a85d03d4ea7cc58afe403a5ac2430afe59f3102.tar.bz2 |
Change to remove warning on glibc2 systems per Ralf Corsepius's
suggestion.
Diffstat (limited to 'c/src/exec/score/cpu')
-rw-r--r-- | c/src/exec/score/cpu/unix/cpu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c index 219b81f685..e931775c54 100644 --- a/c/src/exec/score/cpu/unix/cpu.c +++ b/c/src/exec/score/cpu/unix/cpu.c @@ -983,7 +983,12 @@ void _CPU_SHM_Init( help.val = 1; status = semctl( _CPU_SHM_Semid, i, SETVAL, help ); -#elif defined(hpux) || defined(__linux__) +#elif defined(__linux__) + union semun help; + + help.val = 1; + status = semctl( _CPU_SHM_Semid, i, SETVAL, help ); +#elif defined(hpux) status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 ); #else #error "Not a supported unix variant" |