diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2015-02-05 15:24:17 +0100 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2015-02-05 16:37:39 +0100 |
| commit | 5ad3488f29bbccfcee074bb0f3971acec97cfc45 (patch) | |
| tree | 9d7616c97351f2cd6f43440a7f4be13a828c87ae /src/rt | |
| parent | 2bd8ec2d197809fc0f0efccf1de14419ffb17b2b (diff) | |
| download | rust-5ad3488f29bbccfcee074bb0f3971acec97cfc45.tar.gz rust-5ad3488f29bbccfcee074bb0f3971acec97cfc45.zip | |
unbreak tree for openbsd after #21787
- add `_SC_GETPW_R_SIZE_MAX` constant - declare `struct passwd` - convert `load_self` to `current_exe` Note: OpenBSD don't provide system function to return a valuable Path for `env::current_exe`. The implementation is currently based on the value of `argv[0]`, which couldn't be used when executable is called via PATH.
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.c b/src/rt/rust_builtin.c index 382cbf0d5d1..255fbdcbfcf 100644 --- a/src/rt/rust_builtin.c +++ b/src/rt/rust_builtin.c @@ -204,7 +204,7 @@ int *__dfly_error(void) { return __error(); } #include <sys/sysctl.h> #include <limits.h> -const char * rust_load_self() { +const char * rust_current_exe() { static char *self = NULL; if (self == NULL) { |
