Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fix build for _LP64 machines that don't have COMPAT...



details:   https://anonhg.NetBSD.org/src/rev/26b1c4ea715b
branches:  trunk
changeset: 977298:26b1c4ea715b
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 20 13:16:26 2020 +0000

description:
Fix build for _LP64 machines that don't have COMPAT_NETBSD32 (alpha, ia64)

diffstat:

 sys/kern/kern_sig.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 8d2104fce5f2 -r 26b1c4ea715b sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c       Tue Oct 20 10:41:49 2020 +0000
+++ b/sys/kern/kern_sig.c       Tue Oct 20 13:16:26 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sig.c,v 1.391 2020/10/19 19:33:02 christos Exp $  */
+/*     $NetBSD: kern_sig.c,v 1.392 2020/10/20 13:16:26 christos Exp $  */
 
 /*-
  * Copyright (c) 2006, 2007, 2008, 2019 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.391 2020/10/19 19:33:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.392 2020/10/20 13:16:26 christos Exp $");
 
 #include "opt_ptrace.h"
 #include "opt_dtrace.h"
@@ -2356,6 +2356,7 @@
        return retval;
 }
 
+#if !defined(_LP64) || defined(COMPAT_NETBSD32)
 int
 coredump_elf32(struct lwp *l, struct coredump_iostate *iocookie)
 {
@@ -2364,6 +2365,7 @@
        MODULE_HOOK_CALL(coredump_elf32_hook, (l, iocookie), ENOSYS, retval);
        return retval;
 }
+#endif
 
 #ifdef _LP64
 int



Home | Main Index | Thread Index | Old Index