| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9dfa636 commit 1b0d67b
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,9 +26,11 @@ | |||
| 26 | 26 | ||
| 27 | 27 | #endif // __POSIX__ | |
| 28 | 28 | ||
| 29 | - #if defined(__linux__) || defined(__sun) || defined(__FreeBSD__) | ||
| 29 | + #if defined(__linux__) || defined(__sun) || \ | ||
| 30 | + defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 30 | 31 | #include <link.h> | |
| 31 | - #endif // (__linux__) || defined(__sun) || defined(__FreeBSD__) | ||
| 32 | + #endif // (__linux__) || defined(__sun) || | ||
| 33 | + // (__FreeBSD__) || defined(__OpenBSD__) | ||
| 32 | 34 | ||
| 33 | 35 | #ifdef __APPLE__ | |
| 34 | 36 | #include <mach-o/dyld.h> // _dyld_get_image_name() | |
@@ -331,7 +333,7 @@ void PrintLibuvHandleInformation(uv_loop_t* loop, FILE* stream) { | |||
| 331 | 333 | ||
| 332 | 334 | std::vector<std::string> NativeSymbolDebuggingContext::GetLoadedLibraries() { | |
| 333 | 335 | std::vector<std::string> list; | |
| 334 | - #if defined(__linux__) || defined(__FreeBSD__) | ||
| 336 | + #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 335 | 337 | dl_iterate_phdr( | |
| 336 | 338 | [](struct dl_phdr_info* info, size_t size, void* data) { | |
| 337 | 339 | auto list = static_cast<std::vector<std::string>*>(data); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -277,7 +277,7 @@ std::string GetExecPath(const std::vector<std::string>& argv) { | |||
| 277 | 277 | uv_fs_t req; | |
| 278 | 278 | req.ptr = nullptr; | |
| 279 | 279 | if (0 == | |
| 280 | - uv_fs_realpath(env->event_loop(), &req, exec_path.c_str(), nullptr)) { | ||
| 280 | + uv_fs_realpath(nullptr, &req, exec_path.c_str(), nullptr)) { | ||
| 281 | 281 | CHECK_NOT_NULL(req.ptr); | |
| 282 | 282 | exec_path = std::string(static_cast<char*>(req.ptr)); | |
| 283 | 283 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -519,7 +519,9 @@ static void PrintSystemInformation(JSONWriter* writer) { | |||
| 519 | 519 | #ifndef __sun | |
| 520 | 520 | {"max_user_processes", RLIMIT_NPROC}, | |
| 521 | 521 | #endif | |
| 522 | + #ifndef __OpenBSD__ | ||
| 522 | 523 | {"virtual_memory_kbytes", RLIMIT_AS} | |
| 524 | + #endif | ||
| 523 | 525 | }; | |
| 524 | 526 | #endif // _WIN32 | |
| 525 | 527 | writer->json_objectstart("environmentVariables"); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments