File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
intercept-library/library Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 3131#if defined HAVE_NSGETENVIRON
3232#include < crt_externs.h>
3333#else
34- #include < unistd.h>
35-
34+ extern char **environ;
3635#endif
3736
3837namespace {
Original file line number Diff line number Diff line change 4141#endif
4242#ifdef HAVE_GNU_LIB_NAMES_H
4343#include < gnu/lib-names.h>
44+ #else
45+ #define LIBC_SO " libc.so"
4446#endif
4547
4648#include < spdlog/spdlog.h>
@@ -98,7 +100,6 @@ namespace {
98100 return rust::Ok (result);
99101 }
100102
101- #ifdef HAVE_GNU_LIB_NAMES_H
102103 rust::Result<spawn_function_t > resolve_spawn_function ()
103104 {
104105 spawn_function_t fp = [](const char * path,
@@ -132,7 +133,6 @@ namespace {
132133 };
133134 return rust::Ok (fp);
134135 }
135- #endif
136136
137137 bool contains_separator (const std::string& path)
138138 {
You can’t perform that action at this time.
0 commit comments