Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/common make LKM safe
details: https://anonhg.NetBSD.org/src/rev/29bd8dd71b42
branches: trunk
changeset: 500718:29bd8dd71b42
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Dec 17 15:55:47 2000 +0000
description:
make LKM safe
diffstat:
sys/compat/common/kern_sig_43.c | 4 +++-
sys/compat/common/sysv_sem_14.c | 4 +++-
sys/compat/common/sysv_shm_14.c | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
diffs (57 lines):
diff -r 1538fb550402 -r 29bd8dd71b42 sys/compat/common/kern_sig_43.c
--- a/sys/compat/common/kern_sig_43.c Sun Dec 17 15:52:39 2000 +0000
+++ b/sys/compat/common/kern_sig_43.c Sun Dec 17 15:55:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig_43.c,v 1.13 2000/06/28 15:39:25 mrg Exp $ */
+/* $NetBSD: kern_sig_43.c,v 1.14 2000/12/17 15:55:47 jdolecek Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -36,7 +36,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#if defined(_KERNEL) && !defined(_LKM)
#include "opt_compat_netbsd.h"
+#endif
#include <sys/param.h>
#include <sys/signalvar.h>
diff -r 1538fb550402 -r 29bd8dd71b42 sys/compat/common/sysv_sem_14.c
--- a/sys/compat/common/sysv_sem_14.c Sun Dec 17 15:52:39 2000 +0000
+++ b/sys/compat/common/sysv_sem_14.c Sun Dec 17 15:55:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysv_sem_14.c,v 1.2 2000/06/02 15:53:04 simonb Exp $ */
+/* $NetBSD: sysv_sem_14.c,v 1.3 2000/12/17 15:55:47 jdolecek Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -44,7 +44,9 @@
#include <sys/mount.h>
#include <sys/sem.h>
+#ifndef SYSVSEM
#define SYSVSEM
+#endif
#include <sys/syscallargs.h>
diff -r 1538fb550402 -r 29bd8dd71b42 sys/compat/common/sysv_shm_14.c
--- a/sys/compat/common/sysv_shm_14.c Sun Dec 17 15:52:39 2000 +0000
+++ b/sys/compat/common/sysv_shm_14.c Sun Dec 17 15:55:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysv_shm_14.c,v 1.2 2000/06/02 15:53:04 simonb Exp $ */
+/* $NetBSD: sysv_shm_14.c,v 1.3 2000/12/17 15:55:47 jdolecek Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -44,7 +44,9 @@
#include <sys/mount.h>
#include <sys/shm.h>
+#ifndef SYSVSHM
#define SYSVSHM
+#endif
#include <sys/syscallargs.h>
Home |
Main Index |
Thread Index |
Old Index