From e91bce7ac7aa5e3cf5f30b80aa6190963920ae14 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Mon, 9 Mar 1998 04:39:13 +0000 Subject: [PATCH] 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. --- lib/libc/gen/semctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libc/gen/semctl.c b/lib/libc/gen/semctl.c index 313a1dbeda8..b0ed7235038 100644 --- a/lib/libc/gen/semctl.c +++ b/lib/libc/gen/semctl.c @@ -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 }