mirror of
https://github.com/boostorg/stacktrace.git
synced 2026-02-01 21:02:09 +00:00
Apply Cygwin fixes from Peter Dimov
This commit is contained in:
@@ -130,7 +130,7 @@ std::string to_string(const frame* frames, std::size_t size) {
|
||||
|
||||
|
||||
std::string frame::name() const {
|
||||
#ifndef BOOST_WINDOWS
|
||||
#if !defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
|
||||
::Dl_info dli;
|
||||
const bool dl_ok = !!::dladdr(addr_, &dli);
|
||||
if (dl_ok && dli.dli_sname) {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_WINDOWS
|
||||
#if !defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
|
||||
# include <dlfcn.h>
|
||||
#else
|
||||
# include <boost/detail/winapi/dll.hpp>
|
||||
@@ -21,7 +21,7 @@
|
||||
namespace boost { namespace stacktrace { namespace detail {
|
||||
|
||||
class location_from_symbol {
|
||||
#ifndef BOOST_WINDOWS
|
||||
#if !defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
|
||||
::Dl_info dli_;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user