Apply Cygwin fixes from Peter Dimov

This commit is contained in:
Antony Polukhin
2017-03-18 16:50:38 +03:00
parent 5664c752cb
commit d1380eba28
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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: