summaryrefslogtreecommitdiff
path: root/sys/compat/freebsd/freebsd_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/freebsd/freebsd_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/freebsd/freebsd_exec.c')
-rw-r--r--sys/compat/freebsd/freebsd_exec.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/compat/freebsd/freebsd_exec.c b/sys/compat/freebsd/freebsd_exec.c
index 0ec938b3e01..350b9612031 100644
--- a/sys/compat/freebsd/freebsd_exec.c
+++ b/sys/compat/freebsd/freebsd_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: freebsd_exec.c,v 1.7 1999/09/10 20:45:26 kstailey Exp $ */
+/* $OpenBSD: freebsd_exec.c,v 1.8 1999/11/10 15:55:20 mickey Exp $ */
/* $NetBSD: freebsd_exec.c,v 1.2 1996/05/18 16:02:08 christos Exp $ */
/*
@@ -49,7 +49,9 @@
#include <compat/freebsd/freebsd_util.h>
extern struct sysent freebsd_sysent[];
+#ifdef SYSCALL_DEBUG
extern char *freebsd_syscallnames[];
+#endif
extern const char freebsd_emul_path[];
@@ -60,7 +62,11 @@ struct emul emul_aout_freebsd = {
FREEBSD_SYS_syscall,
FREEBSD_SYS_MAXSYSCALL,
freebsd_sysent,
+#ifdef SYSCALL_DEBUG
freebsd_syscallnames,
+#else
+ NULL,
+#endif
0,
copyargs,
setregs,
@@ -76,7 +82,11 @@ struct emul emul_elf_freebsd = {
FREEBSD_SYS_syscall,
FREEBSD_SYS_MAXSYSCALL,
freebsd_sysent,
+#ifdef SYSCALL_DEBUG
freebsd_syscallnames,
+#else
+ NULL,
+#endif
0,
copyargs,
setregs,