Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-11-01 07:01:02 +0300
committerMichaƫl Zasso <targos@protonmail.com>2019-12-11 11:13:17 +0300
commit3d05d4beeafbcb9b5dbdd3c8691210429899d4a7 (patch)
tree447050109272a0ef5198b6a49a6af2bf9c667ac1 /src
parent6c07a7283344419994d73aa9fa8e5a802c0859e8 (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')
-rw-r--r--src/debug_utils.cc9
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);