Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/common Clean up a stray #ifdef _MODULE - it preve...
details: https://anonhg.NetBSD.org/src/rev/8f3429f0fed3
branches: trunk
changeset: 361581:8f3429f0fed3
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri May 04 08:55:25 2018 +0000
description:
Clean up a stray #ifdef _MODULE - it prevented definition of
COMPAT_SIGCONTEXT which in turn prevented building of the
SYS_compat16_sigaction_14 code.
Should address PR kern/53260
XXX Pull-up to netbsd-8
diffstat:
sys/compat/common/compat_mod.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 2e20cf7906a3 -r 8f3429f0fed3 sys/compat/common/compat_mod.c
--- a/sys/compat/common/compat_mod.c Fri May 04 08:47:55 2018 +0000
+++ b/sys/compat/common/compat_mod.c Fri May 04 08:55:25 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_mod.c,v 1.28 2018/04/12 18:50:13 christos Exp $ */
+/* $NetBSD: compat_mod.c,v 1.29 2018/05/04 08:55:25 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.28 2018/04/12 18:50:13 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.29 2018/05/04 08:55:25 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -73,15 +73,13 @@
int ttcompat(struct tty *, u_long, void *, int, struct lwp *);
-#ifdef _MODULE
#ifdef COMPAT_16
#if !defined(__amd64__) || defined(COMPAT_NETBSD32)
#define COMPAT_SIGCONTEXT
extern char sigcode[], esigcode[];
struct uvm_object *emul_netbsd_object;
-#endif
-#endif
-#endif /* _MODULE */
+#endif /* !defined(__amd64__) || defined(COMPAT_NETBSD32) */
+#endif /* COMPAT_16 */
extern krwlock_t exec_lock;
extern krwlock_t ttcompat_lock;
Home |
Main Index |
Thread Index |
Old Index