From 3a85d03d4ea7cc58afe403a5ac2430afe59f3102 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 28 Jan 1998 15:39:30 +0000 Subject: Change to remove warning on glibc2 systems per Ralf Corsepius's suggestion. --- c/src/exec/score/cpu/unix/cpu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'c/src/exec/score/cpu/unix/cpu.c') 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" -- cgit v1.2.3