martine/ninja — pull request #318 by jsternberg (2012-05-31 19:03:40+00:00)
Title: Missing/unused header files

getenv requires stdlib.h (not implicitly included on some platforms).
sys/termios.h isn't used, and doesn't exist on some platforms that have ioctl.
Added header guards to a few header files.