diff --git a/libstratosphere/source/os/impl/os_debug_impl.os.linux.hpp b/libstratosphere/source/os/impl/os_debug_impl.os.linux.hpp index 52f09170..08d3cb67 100644 --- a/libstratosphere/source/os/impl/os_debug_impl.os.linux.hpp +++ b/libstratosphere/source/os/impl/os_debug_impl.os.linux.hpp @@ -36,7 +36,7 @@ namespace ams::os::impl { /* Get the thread satck. */ void *base = nullptr; size_t size = 0; - const auto getstack_res = pthread_getattr_np(pthread_self(), std::addressof(attr)); + const auto getstack_res = pthread_attr_getstack(std::addressof(attr), std::addressof(base), std::addressof(size)); AMS_ABORT_UNLESS(getstack_res == 0); *out_stack = reinterpret_cast(base);