Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(912)

Unified Diff: ports/nacl-spawn/nacl_spawn.cc

Issue 627103003: Add shared library version of libcli_main Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/nacl-spawn/nacl_main.h ('k') | ports/nacl-spawn/path_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/nacl-spawn/nacl_spawn.cc
diff --git a/ports/nacl-spawn/nacl_spawn.cc b/ports/nacl-spawn/nacl_spawn.cc
index f3a56ec22f96140e4c0c8b048080924b86dec2c6..5e0d8d22a2d633392b63cb386c9c5ab54db1395e 100644
--- a/ports/nacl-spawn/nacl_spawn.cc
+++ b/ports/nacl-spawn/nacl_spawn.cc
@@ -55,13 +55,7 @@ struct NaClSpawnReply {
static std::string GetCwd() {
char cwd[PATH_MAX + 1];
- // TODO(hamaji): Remove this #if and always call getcwd.
- // https://code.google.com/p/naclports/issues/detail?id=109
-#if defined(__GLIBC__)
- if (!getwd(cwd))
-#else
if (!getcwd(cwd, PATH_MAX))
-#endif
assert(0);
return cwd;
}
@@ -288,7 +282,6 @@ static bool ExpandShBang(std::string* prog, pp::VarDictionary* req) {
static bool UseBuiltInFallback(std::string* prog, pp::VarDictionary* req) {
if (prog->find('/') == std::string::npos) {
- bool found = false;
const char* path_env = getenv("PATH");
std::vector<std::string> paths;
GetPaths(path_env, &paths);
« no previous file with comments | « ports/nacl-spawn/nacl_main.h ('k') | ports/nacl-spawn/path_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698