multiprocessing fixed on linux by fixing cpu.c so correct form of

semctl was being invoked.
This commit is contained in:
Joel Sherrill
1997-04-22 19:57:02 +00:00
parent e71ce0712c
commit f254555238
2 changed files with 8 additions and 6 deletions

View File

@@ -24,7 +24,7 @@
#define __EXTENSIONS__
#endif
#if defined(linux)
#if defined(__linux__)
#define MALLOC_0_RETURNS_NULL
#endif
@@ -873,9 +873,10 @@ void _CPU_SHM_Init(
help.val = 1;
status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
#endif
#if defined(hpux)
#elif defined(hpux) || defined(__linux__)
status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 );
#else
#error "Not a supported unix variant"
#endif
fix_syscall_errno(); /* in case of newlib */

View File

@@ -24,7 +24,7 @@
#define __EXTENSIONS__
#endif
#if defined(linux)
#if defined(__linux__)
#define MALLOC_0_RETURNS_NULL
#endif
@@ -873,9 +873,10 @@ void _CPU_SHM_Init(
help.val = 1;
status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
#endif
#if defined(hpux)
#elif defined(hpux) || defined(__linux__)
status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 );
#else
#error "Not a supported unix variant"
#endif
fix_syscall_errno(); /* in case of newlib */