Include unistd.h in files that use unlink() on OS X.
authorNico Weber <nicolasweber@gmx.de>
Sun, 5 Aug 2012 19:02:01 +0000 (12:02 -0700)
committerNico Weber <nicolasweber@gmx.de>
Sun, 5 Aug 2012 19:07:53 +0000 (12:07 -0700)
commitde8d5080c592f6e1cf59689e321d4bd66ee73290
tree24099189576ba702bb976472afc607f6411d921d
parented07eb9f2f25ddee464e786f0f2f82e9e8a33e0a
Include unistd.h in files that use unlink() on OS X.

`man unlink` says this is necessary, and according to a report by
Claus Klein, omitting them breaks the build on OS X 10.5 with gcc 4.7
(see issue #396).

(On Windows, ninja's util.h includes a define for unlink.)
src/build_log_perftest.cc
src/build_log_test.cc