e91bce7ac7
semsys syscall that FreeBSD kernels use. Grumble. So make the call dependent on if __NETBSD_SYSCALLS is defined.
20 lines
385 B
C
20 lines
385 B
C
#include <sys/types.h>
|
|
#include <sys/ipc.h>
|
|
#include <sys/sem.h>
|
|
|
|
#if __STDC__
|
|
int semctl(int semid, int semnum, int cmd, union semun semun)
|
|
#else
|
|
int semctl(semid, int semnum, cmd, semun)
|
|
int semid, semnum;
|
|
int cmd;
|
|
union semun semun;
|
|
#endif
|
|
{
|
|
#ifdef __NETBSD_SYSCALLS
|
|
return (__semctl(semid, semnum, cmd, &semun));
|
|
#else
|
|
return (semsys(0, semid, semnum, cmd, &semun));
|
|
#endif
|
|
}
|