GeezerVison is showing github.com — build: ease DragonFlyBSD build · lance/node@5c71c12
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/debug_utils.cc +5-4Lines changed: 5 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
26 | 26 | #endif // __POSIX__ |
27 | 27 |
|
28 | 28 | #if defined(__linux__) || defined(__sun) || \ |
29 | | - defined(__FreeBSD__) || defined(__OpenBSD__) |
| 29 | + defined(__FreeBSD__) || defined(__OpenBSD__) || \ |
| 30 | + defined(__DragonFly__) |
30 | 31 | #include <link.h> |
31 | | -#endif // (__linux__) || defined(__sun) || |
32 | | - // (__FreeBSD__) || defined(__OpenBSD__) |
| 32 | +#endif |
33 | 33 |
|
34 | 34 | #ifdef __APPLE__ |
35 | 35 | #include <mach-o/dyld.h> // _dyld_get_image_name() |
@@ -337,7 +337,8 @@ void PrintLibuvHandleInformation(uv_loop_t* loop, FILE* stream) { |
337 | 337 |
|
338 | 338 | std::vector<std::string> NativeSymbolDebuggingContext::GetLoadedLibraries() { |
339 | 339 | std::vector<std::string> list; |
340 | | -#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) |
| 340 | +#if defined(__linux__) || defined(__FreeBSD__) || \ |
| 341 | + defined(__OpenBSD__) || defined(__DragonFly__) |
341 | 342 | dl_iterate_phdr( |
342 | 343 | [](struct dl_phdr_info* info, size_t size, void* data) { |
343 | 344 | auto list = static_cast<std::vector<std::string>*>(data); |
|
Collapse file
Copy file name to clipboardExpand all lines: tools/utils.py +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -63,6 +63,10 @@ def GuessOS(): |
63 | 63 | return 'solaris' |
64 | 64 | elif id == 'NetBSD': |
65 | 65 | return 'netbsd' |
| 66 | + elif id == 'DragonFly': |
| 67 | + # Doing so on purpose as they are pretty close |
| 68 | + # minus few features |
| 69 | + return 'freebsd' |
66 | 70 | elif id == 'AIX': |
67 | 71 | return 'aix' |
68 | 72 | else: |
|