diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-02-05 14:38:56 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-02-05 14:38:56 -0800 |
| commit | d0e82a68a9bf32eff2509e9f2579c5aa0fc61e92 (patch) | |
| tree | 670f8fc869b950c3440acc85fad3ef7b5db75266 /src/rt | |
| parent | 3454c504cfde9e034753a048feee632c060db5c2 (diff) | |
| download | rust-d0e82a68a9bf32eff2509e9f2579c5aa0fc61e92.tar.gz rust-d0e82a68a9bf32eff2509e9f2579c5aa0fc61e92.zip | |
Tidy fixes
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_builtin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.c b/src/rt/rust_builtin.c index 382cbf0d5d1..6bf86f52739 100644 --- a/src/rt/rust_builtin.c +++ b/src/rt/rust_builtin.c @@ -47,7 +47,8 @@ extern char **environ; #endif #endif -#if defined(__FreeBSD__) || defined(__linux__) || defined(__ANDROID__) || defined(__DragonFly__) || defined(__OpenBSD__) +#if defined(__FreeBSD__) || defined(__linux__) || defined(__ANDROID__) \ + || defined(__DragonFly__) || defined(__OpenBSD__) extern char **environ; #endif @@ -235,7 +236,7 @@ const char * rust_load_self() { /* get realpath if possible */ if ((argv[0] != NULL) && ((*argv[0] == '.') || (*argv[0] == '/') - || (strstr(argv[0], "/") != NULL))) + || (strstr(argv[0], "/") != NULL))) self = realpath(argv[0], NULL); else |
