Tidy fixes

This commit is contained in:
Brian Anderson 2015-02-05 14:38:56 -08:00
parent 3454c504cf
commit d0e82a68a9
2 changed files with 4 additions and 2 deletions

View File

@ -91,6 +91,7 @@ try:
'src/llvm',
'src/gyp',
'src/libbacktrace',
'src/libuv',
'src/compiler-rt',
'src/rt/hoedown',
'src/rustllvm',

View File

@ -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