summaryrefslogtreecommitdiff
path: root/sys/compat/bsdos
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/bsdos
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/bsdos')
-rw-r--r--sys/compat/bsdos/bsdos_exec.c8
-rw-r--r--sys/compat/bsdos/files.bsdos4
2 files changed, 9 insertions, 3 deletions
diff --git a/sys/compat/bsdos/bsdos_exec.c b/sys/compat/bsdos/bsdos_exec.c
index 6e3bf9019c1..b6c5ea1686e 100644
--- a/sys/compat/bsdos/bsdos_exec.c
+++ b/sys/compat/bsdos/bsdos_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bsdos_exec.c,v 1.1 1997/09/02 08:54:12 downsj Exp $ */
+/* $OpenBSD: bsdos_exec.c,v 1.2 1999/11/10 15:55:13 mickey Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -47,7 +47,9 @@
#include <compat/bsdos/bsdos_syscall.h>
extern struct sysent bsdos_sysent[];
+#ifdef SYSCALL_DEBUG
extern char *bsdos_syscallnames[];
+#endif
extern void sendsig __P((sig_t, int, int, u_long, int, union sigval));
extern char sigcode[], esigcode[];
@@ -59,7 +61,11 @@ struct emul emul_bsdos = {
BSDOS_SYS_syscall,
BSDOS_SYS_MAXSYSCALL,
bsdos_sysent,
+#ifdef SYSCALL_DEBUG
bsdos_syscallnames,
+#else
+ NULL,
+#endif
0,
copyargs,
setregs,
diff --git a/sys/compat/bsdos/files.bsdos b/sys/compat/bsdos/files.bsdos
index bbca06e376a..66854b8dc7f 100644
--- a/sys/compat/bsdos/files.bsdos
+++ b/sys/compat/bsdos/files.bsdos
@@ -1,4 +1,4 @@
-# $OpenBSD: files.bsdos,v 1.1 1997/09/02 08:54:16 downsj Exp $
+# $OpenBSD: files.bsdos,v 1.2 1999/11/10 15:55:13 mickey Exp $
#
# Config file description for machine-independent BSD/OS compat code.
# Included by ports that need it.
@@ -8,4 +8,4 @@
file compat/bsdos/bsdos_exec.c compat_bsdos
file compat/bsdos/bsdos_sysent.c compat_bsdos
-file compat/bsdos/bsdos_syscalls.c compat_bsdos
+file compat/bsdos/bsdos_syscalls.c compat_bsdos & syscall_debug