Skip to content

Commit 2d17bb5

Browse files
committed
Merge branch 'devel'
2 parents 24f4f63 + 746358f commit 2d17bb5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

source/intercept-library/library/lib.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
#if defined HAVE_NSGETENVIRON
3232
#include <crt_externs.h>
3333
#else
34-
#include <unistd.h>
35-
34+
extern char **environ;
3635
#endif
3736

3837
namespace {

source/libsys/source/Process.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
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
{

0 commit comments

Comments
 (0)