summaryrefslogtreecommitdiff
path: root/sys/compat/netbsd/netbsd_exec.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-11-10 15:55:25 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-11-10 15:55:25 +0000
commit714819a2c2535daa62112e50f032b5b2e0e8716c (patch)
tree55f89dd41209d825787bd972b1497ffb4707d6d7 /sys/compat/netbsd/netbsd_exec.c
parentc8d2e51bd7a0619de056d282d236c87a31ae36db (diff)
include syscallnames only if compiling w/ SYSCALL_DEBUG.
was already so for native and sunos, the rest was just wasting space on it. niels@ millert@ ok
Diffstat (limited to 'sys/compat/netbsd/netbsd_exec.c')
-rw-r--r--sys/compat/netbsd/netbsd_exec.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/compat/netbsd/netbsd_exec.c b/sys/compat/netbsd/netbsd_exec.c
index 56233a823b7..40f7575dc6f 100644
--- a/sys/compat/netbsd/netbsd_exec.c
+++ b/sys/compat/netbsd/netbsd_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netbsd_exec.c,v 1.5 1999/09/26 11:07:32 kstailey Exp $ */
+/* $OpenBSD: netbsd_exec.c,v 1.6 1999/11/10 15:55:22 mickey Exp $ */
/* $NetBSD: svr4_exec.c,v 1.16 1995/10/14 20:24:20 christos Exp $ */
/*
@@ -59,8 +59,9 @@ static void *netbsd_elf64_copyargs __P((struct exec_package *,
extern char netbsd_sigcode[], netbsd_esigcode[];
extern struct sysent netbsd_sysent[];
+#ifdef SYSCALL_DEBUG
extern char *netbsd_syscallnames[];
-
+#endif
struct emul emul_elf64_netbsd = {
"netbsd",
@@ -69,7 +70,11 @@ struct emul emul_elf64_netbsd = {
NETBSD_SYS_syscall,
NETBSD_SYS_MAXSYSCALL,
netbsd_sysent,
+#ifdef SYSCALL_DEBUG
netbsd_syscallnames,
+#else
+ NULL,
+#endif
0,
netbsd_elf64_copyargs,
setregs,