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:
John Birrell 1998-03-09 04:39:13 +00:00
parent ee51c92b78
commit e91bce7ac7
1 changed files with 4 additions and 0 deletions

View File

@ -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
}