summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ddb/db_trap.c1
-rw-r--r--i386/i386/setjmp.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/ddb/db_trap.c b/ddb/db_trap.c
index 395a9b5..8f59a36 100644
--- a/ddb/db_trap.c
+++ b/ddb/db_trap.c
@@ -35,6 +35,7 @@
*/
#include <mach/boolean.h>
#include <machine/db_machdep.h>
+#include <machine/setjmp.h>
#include <ddb/db_command.h>
#include <ddb/db_access.h>
#include <ddb/db_break.h>
diff --git a/i386/i386/setjmp.h b/i386/i386/setjmp.h
index 21c856d..162217a 100644
--- a/i386/i386/setjmp.h
+++ b/i386/i386/setjmp.h
@@ -33,4 +33,6 @@ typedef struct jmp_buf {
int jmp_buf[6]; /* ebx, esi, edi, ebp, esp, eip */
} jmp_buf_t;
+extern int _setjmp(jmp_buf_t*);
+
#endif /* _I386_SETJMP_H_ */