summaryrefslogtreecommitdiff
path: root/sys/compat/ultrix/ultrix_misc.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/ultrix/ultrix_misc.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/ultrix/ultrix_misc.c')
-rw-r--r--sys/compat/ultrix/ultrix_misc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/compat/ultrix/ultrix_misc.c b/sys/compat/ultrix/ultrix_misc.c
index b09bfd6cb9c..6900e77a56b 100644
--- a/sys/compat/ultrix/ultrix_misc.c
+++ b/sys/compat/ultrix/ultrix_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ultrix_misc.c,v 1.14 1999/06/01 17:54:32 pefo Exp $ */
+/* $OpenBSD: ultrix_misc.c,v 1.15 1999/11/10 15:55:24 mickey Exp $ */
/* $NetBSD: ultrix_misc.c,v 1.23 1996/04/07 17:23:04 jonathan Exp $ */
/*
@@ -129,7 +129,9 @@
#include <sys/socketvar.h> /* sosetopt() */
extern struct sysent ultrix_sysent[];
+#ifdef SYSCALL_DEBUG
extern char *ultrix_syscallnames[];
+#endif
/*
* Select the appropriate setregs callback for the target architecture.
@@ -154,7 +156,11 @@ struct emul emul_ultrix = {
ULTRIX_SYS_syscall,
ULTRIX_SYS_MAXSYSCALL,
ultrix_sysent,
+#ifdef SYSCALL_DEBUG
ultrix_syscallnames,
+#else
+ NULL
+#endif
0,
copyargs,
ULTRIX_EXEC_SETREGS,