| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e0811cd commit c8c22b8
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,10 +26,10 @@ | |||
| 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); | |
| 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: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments