summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-07-19 22:28:57 +0000
committerniklas <niklas@openbsd.org>1997-07-19 22:28:57 +0000
commitcf92f179713a09cf2fee6b23d0e9c24c41fc91e8 (patch)
treec04e2a18486b6cb62447ae63f07936c7dac00e76
parentSOFTWARE_SSTEP bugs fixed. KNF. register specs removed. Include vm.h (diff)
downloadwireguard-openbsd-cf92f179713a09cf2fee6b23d0e9c24c41fc91e8.tar.xz
wireguard-openbsd-cf92f179713a09cf2fee6b23d0e9c24c41fc91e8.zip
Make SOFTWARE_SSTEP compile with strict prototyping
-rw-r--r--sys/ddb/db_run.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/ddb/db_run.h b/sys/ddb/db_run.h
index 71d2c00ba04..2446ef1d438 100644
--- a/sys/ddb/db_run.h
+++ b/sys/ddb/db_run.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_run.h,v 1.4 1996/04/21 22:19:12 deraadt Exp $ */
+/* $OpenBSD: db_run.h,v 1.5 1997/07/19 22:28:57 niklas Exp $ */
/* $NetBSD: db_run.h,v 1.3 1996/02/05 01:57:14 christos Exp $ */
/*
@@ -54,4 +54,14 @@ void db_trace_until_call_cmd __P((db_expr_t, int, db_expr_t, char *));
void db_trace_until_matching_cmd __P((db_expr_t, int, db_expr_t, char *));
void db_continue_cmd __P((db_expr_t, int, db_expr_t, char *));
+#ifdef SOFTWARE_SSTEP
+/*
+ * I've seen this defined to (0) when it is not needed and then the proto will
+ * not be correct, so skip it then.
+ */
+#ifndef getreg_val
+extern register_t getreg_val __P((db_regs_t *, int));
+#endif
+#endif /* SOFTWARE_SSTEP */
+
#endif _DDB_DB_RUN_