Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern add disgusting magic to handle compat_netbsd32 as a...
details: https://anonhg.NetBSD.org/src/rev/242664fff99c
branches: trunk
changeset: 358030:242664fff99c
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 08 15:54:40 2017 +0000
description:
add disgusting magic to handle compat_netbsd32 as a module.
diffstat:
sys/kern/sys_ptrace_common.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 266f5a3667e8 -r 242664fff99c sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c Fri Dec 08 15:52:01 2017 +0000
+++ b/sys/kern/sys_ptrace_common.c Fri Dec 08 15:54:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_ptrace_common.c,v 1.24 2017/12/07 15:21:34 christos Exp $ */
+/* $NetBSD: sys_ptrace_common.c,v 1.25 2017/12/08 15:54:40 christos Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.24 2017/12/07 15:21:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.25 2017/12/08 15:54:40 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -127,6 +127,11 @@
#include "opt_compat_netbsd32.h"
#endif
+#if defined(__HAVE_COMPAT_NETBSD32) && !defined(COMPAT_NETBSD32) \
+ && !defined(_RUMPKERNEL)
+#define COMPAT_NETBSD32
+#endif
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
Home |
Main Index |
Thread Index |
Old Index