NetBSD implements semctl using a __semctl syscall instead of the
semsys syscall that FreeBSD kernels use. Grumble. So make the call dependent on if __NETBSD_SYSCALLS is defined.
This commit is contained in:
parent
ee51c92b78
commit
e91bce7ac7
|
@ -11,5 +11,9 @@ int semctl(semid, int semnum, cmd, semun)
|
|||
union semun semun;
|
||||
#endif
|
||||
{
|
||||
#ifdef __NETBSD_SYSCALLS
|
||||
return (__semctl(semid, semnum, cmd, &semun));
|
||||
#else
|
||||
return (semsys(0, semid, semnum, cmd, &semun));
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue