diff options
author | David Carlier <devnexen@gmail.com> | 2019-11-01 07:01:02 +0300 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2019-12-10 21:08:28 +0300 |
commit | 5c71c123637b56a6eacbf72fdb762306d3810116 (patch) | |
tree | 1d0b4996786078ad0ce44bed85bde15a532196bb /src/debug_utils.cc | |
parent | 8a5c7f6abdfb4a8b09bd1de85c6e9819df66ca48 (diff) |
build: ease DragonFlyBSD build
Implicitly pretending being FreeBSD and disable
large pages for this platform.
PR-URL: https://github.com/nodejs/node/pull/30201
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/debug_utils.cc')
-rw-r--r-- | src/debug_utils.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/debug_utils.cc b/src/debug_utils.cc index 6168d9a968b..8dd51b39319 100644 --- a/src/debug_utils.cc +++ b/src/debug_utils.cc @@ -26,10 +26,10 @@ #endif // __POSIX__ #if defined(__linux__) || defined(__sun) || \ - defined(__FreeBSD__) || defined(__OpenBSD__) + defined(__FreeBSD__) || defined(__OpenBSD__) || \ + defined(__DragonFly__) #include <link.h> -#endif // (__linux__) || defined(__sun) || - // (__FreeBSD__) || defined(__OpenBSD__) +#endif #ifdef __APPLE__ #include <mach-o/dyld.h> // _dyld_get_image_name() @@ -337,7 +337,8 @@ void PrintLibuvHandleInformation(uv_loop_t* loop, FILE* stream) { std::vector<std::string> NativeSymbolDebuggingContext::GetLoadedLibraries() { std::vector<std::string> list; -#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) +#if defined(__linux__) || defined(__FreeBSD__) || \ + defined(__OpenBSD__) || defined(__DragonFly__) dl_iterate_phdr( [](struct dl_phdr_info* info, size_t size, void* data) { auto list = static_cast<std::vector<std::string>*>(data); |