Module Name:    src
Committed By:   christos
Date:           Sat Dec 16 18:42:22 UTC 2017

Modified Files:
        src/sys/kern: kern_stub.c

Log Message:
Fix the build: XXX this might^Wwill break module autoloading...
It is the general issue about symbol replacement during module loading and
unloading...


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 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.43 src/sys/kern/kern_stub.c:1.44
--- src/sys/kern/kern_stub.c:1.43	Tue Nov  1 20:11:59 2016
+++ src/sys/kern/kern_stub.c	Sat Dec 16 13:42:22 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_stub.c,v 1.43 2016/11/02 00:11:59 pgoyette Exp $	*/
+/*	$NetBSD: kern_stub.c,v 1.44 2017/12/16 18:42:22 christos Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,10 +62,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.43 2016/11/02 00:11:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.44 2017/12/16 18:42:22 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ktrace.h"
+#include "opt_sysv.h"
 #endif
 
 #include <sys/param.h>
@@ -86,6 +87,19 @@ bool default_bus_space_handle_is_equal(b
     bus_space_handle_t);
 
 /*
+ * SYSV Semaphores, Shared Memory, Message Queues
+ */
+#ifndef SYSVMSG
+__strong_alias(msgctl1,enosys);
+#endif
+#ifndef SYSVSHM
+__strong_alias(shmctl1,enosys);
+#endif
+#ifndef SYSVSEM
+__strong_alias(semctl1,enosys);
+#endif
+
+/*
  * ktrace stubs.  ktruser() goes to enosys as we want to fail the syscall,
  * but not kill the process: utrace() is a debugging feature.
  */

Reply via email to