summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2001-01-15 21:33:52 +0000
committerthorpej <thorpej@NetBSD.org>2001-01-15 21:33:52 +0000
commit009d2d725c702eb274fa2fc424dcdf09697b5ec8 (patch)
tree214b45140683b20c908af136d2469f8c4f2f8e89 /sys/compat
parenta8d16ea90160801f7571d811a62be6a27f2163d0 (diff)
Grok __HAVE_MINIMAL_EMUL and __HAVE_SYSCALL_INTERN.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/ultrix/ultrix_misc.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/compat/ultrix/ultrix_misc.c b/sys/compat/ultrix/ultrix_misc.c
index b4b46f04425..78ab26b4702 100644
--- a/sys/compat/ultrix/ultrix_misc.c
+++ b/sys/compat/ultrix/ultrix_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ultrix_misc.c,v 1.67 2001/01/07 04:13:17 simonb Exp $ */
+/* $NetBSD: ultrix_misc.c,v 1.68 2001/01/15 21:33:52 thorpej Exp $ */
/*
* Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -166,17 +166,22 @@ extern const char * const ultrix_syscallnames[];
#endif /* vax */
#endif
-
extern char ultrix_sigcode[], ultrix_esigcode[];
+#ifdef __HAVE_SYSCALL_INTERN
+void syscall_intern(struct proc *);
+#else
void syscall __P((void));
+#endif
const struct emul emul_ultrix = {
"ultrix",
"/emul/ultrix",
+#ifndef __HAVE_MINIMAL_EMUL
0,
NULL,
ULTRIX_SYS_syscall,
ULTRIX_SYS_MAXSYSCALL,
+#endif
ultrix_sysent,
ultrix_syscallnames,
sendsig,
@@ -185,7 +190,11 @@ const struct emul emul_ultrix = {
NULL,
NULL,
NULL,
- syscall
+#ifdef __HAVE_SYSCALL_INTERN
+ syscall_intern,
+#else
+ syscall,
+#endif
};
#define GSI_PROG_ENV 1