summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/unix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-01-28 15:39:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-01-28 15:39:30 +0000
commit3a85d03d4ea7cc58afe403a5ac2430afe59f3102 (patch)
treeac79472f54117d9901b3fbccf6f114fc9f0a2505 /cpukit/score/cpu/unix
parentFix from Eric Norum: (diff)
downloadrtems-3a85d03d4ea7cc58afe403a5ac2430afe59f3102.tar.bz2
Change to remove warning on glibc2 systems per Ralf Corsepius's
suggestion.
Diffstat (limited to 'cpukit/score/cpu/unix')
-rw-r--r--cpukit/score/cpu/unix/cpu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c
index 219b81f685..e931775c54 100644
--- a/cpukit/score/cpu/unix/cpu.c
+++ b/cpukit/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"