Skip to content
Snippets Groups Projects
Commit 6eab64c3 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa Committed by Brad King
Browse files

SystemInformation: Include backtrace-related headers on FreeBSD

This was probably broken for a long while, but the problem was not apparent
because the check for execinfo.h would fail by default because
-I/usr/local/include was not being passed to the compiler when making the
checks for the header's existence.

Now that very recent FreeBSD versions (ie. 10-CURRENT) have NetBSD's
libexecinfo in base (and it is thus installed into /usr), the
backtrace-related checks would pass, but the required headers were not being
included in SystemInformation.cxx.

Change-Id: I3b91ed7ac0e6878035aee202b3336c536cc6d2ff
parent 96b2f6f4
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,15 @@ typedef int siginfo_t; ...@@ -88,6 +88,15 @@ typedef int siginfo_t;
# include <ifaddrs.h> # include <ifaddrs.h>
# define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN # define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN
# endif # endif
# if defined(KWSYS_SYSTEMINFORMATION_HAS_BACKTRACE)
# include <execinfo.h>
# if defined(KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE)
# include <cxxabi.h>
# endif
# if defined(KWSYS_SYSTEMINFORMATION_HAS_SYMBOL_LOOKUP)
# include <dlfcn.h>
# endif
# endif
#endif #endif
#if defined(__OpenBSD__) || defined(__NetBSD__) #if defined(__OpenBSD__) || defined(__NetBSD__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment