Skip to content

Commit 3fdce79

Browse files
brad0korli
andauthored
[libunwind] fix building on Haiku i386 (#171586)
Co-authored-by: Jérôme Duval <[email protected]>
1 parent 1f07f7c commit 3fdce79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libunwind/src/UnwindCursor.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
#define _LIBUNWIND_CHECK_LINUX_SIGRETURN 1
4242
#endif
4343

44-
#if defined(_LIBUNWIND_TARGET_HAIKU) && defined(_LIBUNWIND_TARGET_X86_64)
44+
#if defined(_LIBUNWIND_TARGET_HAIKU) && \
45+
(defined(_LIBUNWIND_TARGET_I386) || defined(_LIBUNWIND_TARGET_X86_64))
4546
#include <OS.h>
4647
#include <signal.h>
4748
#define _LIBUNWIND_CHECK_HAIKU_SIGRETURN 1
@@ -1366,7 +1367,7 @@ class UnwindCursor : public AbstractUnwindCursor{
13661367
bool _unwindInfoMissing;
13671368
bool _isSignalFrame;
13681369
#if defined(_LIBUNWIND_CHECK_LINUX_SIGRETURN) || \
1369-
defined(_LIBUNWIND_TARGET_HAIKU)
1370+
defined(_LIBUNWIND_CHECK_HAIKU_SIGRETURN)
13701371
bool _isSigReturn = false;
13711372
#endif
13721373
#ifdef _LIBUNWIND_TRACE_RET_INJECT

0 commit comments

Comments
 (0)