Skip to content

Commit 24dc3b0

Browse files
sunpoetbregma
authored andcommitted
Fix build on FreeBSD i386
The error message is as follows: ``` --- x86/Gos-freebsd.lo --- x86/Gos-freebsd.c:127:10: error: use of undeclared identifier 'i' for (i = 0; i < DWARF_NUM_PRESERVED_REGS; ++i) ^ x86/Gos-freebsd.c:127:17: error: use of undeclared identifier 'i' for (i = 0; i < DWARF_NUM_PRESERVED_REGS; ++i) ^ x86/Gos-freebsd.c:127:49: error: use of undeclared identifier 'i' for (i = 0; i < DWARF_NUM_PRESERVED_REGS; ++i) ^ x86/Gos-freebsd.c:128:20: error: use of undeclared identifier 'i' c->dwarf.loc[i] = DWARF_NULL_LOC; ^ 4 errors generated. *** [x86/Gos-freebsd.lo] Error code 1 ```
1 parent d2d34f8 commit 24dc3b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/x86/Gos-freebsd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ x86_handle_signal_frame (unw_cursor_t *cursor)
111111
struct sigframe *sf;
112112
uintptr_t uc_addr;
113113
struct dwarf_loc esp_loc;
114+
int i;
114115

115116
sf = (struct sigframe *)c->dwarf.cfa;
116117
uc_addr = (uintptr_t)&(sf->sf_uc);

0 commit comments

Comments
 (0)