martine/ninja — pull request #411 by grinder (2012-09-07 19:10:04+00:00)
Title: Solaris compatibility fixes

Forgive the slightly silly commit history but this latest revision builds and works on OpenIndiana.

I did...

pathcc -D__SVR4 -D__sun -lunwind -lstl -lclang_rt browse.cc build.cc build_log.cc clean.cc depfile_parser.in.cc disk_interface.cc edit_distance.cc graph.cc graphviz.cc eval_env.cc explain.cc lexer.cc manifest_parser.cc metrics.cc ninja.cc state.cc subprocess-posix.cc util.cc -o ninja

(this used PathScale's EKOPath compiler and STDCXX 5.0 with LLVM's libcxxrt)

And then I recompiled it with GCC 4.6.3 and libstdc++ by running ./bootstrap.py and ./src/ninja

Works great, feel free to cherry pick these minor changes without pulling.