mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
AK: Add support for backtraces on Haiku
This commit is contained in:
parent
9ce2682ce6
commit
485ae28ba7
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
|
|
||||||
#if (defined(AK_OS_LINUX) && !defined(AK_OS_ANDROID)) || defined(AK_LIBC_GLIBC) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_SOLARIS)
|
#if (defined(AK_OS_LINUX) && !defined(AK_OS_ANDROID)) || defined(AK_LIBC_GLIBC) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_SOLARIS) || defined(AK_OS_HAIKU)
|
||||||
# define EXECINFO_BACKTRACE
|
# define EXECINFO_BACKTRACE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -340,8 +340,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||||
# Solaris has socket and networking related functions in two extra libraries
|
# Solaris has socket and networking related functions in two extra libraries
|
||||||
target_link_libraries(LibCore PRIVATE nsl socket)
|
target_link_libraries(LibCore PRIVATE nsl socket)
|
||||||
endif()
|
endif()
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "BSD$")
|
if (${CMAKE_SYSTEM_NAME} MATCHES "BSD$" OR HAIKU)
|
||||||
# BSD Platforms have backtrace(3) in a separate library
|
# BSD Platforms and Haiku have backtrace(3) in a separate library
|
||||||
target_link_libraries(LibCore PRIVATE execinfo)
|
target_link_libraries(LibCore PRIVATE execinfo)
|
||||||
endif()
|
endif()
|
||||||
if (HAIKU)
|
if (HAIKU)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue