summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <marin.ramesa@gmail.com>2013-07-06 22:21:35 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-07 19:09:55 +0200
commiteb83a43f746c3acbaa908383cdc5822b073ac250 (patch)
tree6c96818baa42dc98f58e15abb666e026fea8cdf9
parent0fa7401d334a7771d5c064572083e389b695a54b (diff)
fix implicit declarations
* ddb/db_trap.c: Include <machine/setjmp.h>. * i386/i386/setjmp.h (_setjmp): Add prototype.
-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_ */