Module Name: src Committed By: christos Date: Thu Apr 12 20:43:44 UTC 2018
Modified Files: src/sys/kern: kern_stub.c Log Message: let the modular code load the sysv modules. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/kern/kern_stub.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_stub.c diff -u src/sys/kern/kern_stub.c:1.44 src/sys/kern/kern_stub.c:1.45 --- src/sys/kern/kern_stub.c:1.44 Sat Dec 16 13:42:22 2017 +++ src/sys/kern/kern_stub.c Thu Apr 12 16:43:44 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_stub.c,v 1.44 2017/12/16 18:42:22 christos Exp $ */ +/* $NetBSD: kern_stub.c,v 1.45 2018/04/12 20:43:44 christos Exp $ */ /*- * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc. @@ -62,11 +62,12 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.44 2017/12/16 18:42:22 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.45 2018/04/12 20:43:44 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_ktrace.h" #include "opt_sysv.h" +#include "opt_modular.h" #endif #include <sys/param.h> @@ -89,6 +90,7 @@ bool default_bus_space_handle_is_equal(b /* * SYSV Semaphores, Shared Memory, Message Queues */ +#ifndef MODULAR #ifndef SYSVMSG __strong_alias(msgctl1,enosys); #endif @@ -98,6 +100,7 @@ __strong_alias(shmctl1,enosys); #ifndef SYSVSEM __strong_alias(semctl1,enosys); #endif +#endif /* * ktrace stubs. ktruser() goes to enosys as we want to fail the syscall,