summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibC/setjmp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/setjmp.h b/Userland/Libraries/LibC/setjmp.h
index 8182eb9a00..f5258cdb1e 100644
--- a/Userland/Libraries/LibC/setjmp.h
+++ b/Userland/Libraries/LibC/setjmp.h
@@ -15,7 +15,13 @@
__BEGIN_DECLS
struct __jmp_buf {
+#ifdef __i386__
uint32_t regs[6];
+#elif __x86_64__
+ uint64_t regs[8];
+#else
+# error
+#endif
bool did_save_signal_mask;
sigset_t saved_signal_mask;
};