Module Name: src
Committed By: pgoyette
Date: Fri May 4 08:55:25 UTC 2018
Modified Files:
src/sys/compat/common: compat_mod.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/compat/common/compat_mod.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/compat/common/compat_mod.c
diff -u src/sys/compat/common/compat_mod.c:1.28 src/sys/compat/common/compat_mod.c:1.29
--- src/sys/compat/common/compat_mod.c:1.28 Thu Apr 12 18:50:13 2018
+++ src/sys/compat/common/compat_mod.c Fri May 4 08:55:25 2018
@@ -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 @@ MODULE(MODULE_CLASS_EXEC, compat, NULL);
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;