diff options
author | Arnaud Gelas <arnaud_gelas@hms.harvard.edu> | 2011-04-30 12:37:38 (GMT) |
---|---|---|
committer | Arnaud Gelas <arnaud_gelas@hms.harvard.edu> | 2011-04-30 12:49:36 (GMT) |
commit | 13adc40187c21ef1dbba0b46cc865ebdfa2ab4ea (patch) | |
tree | e6f64b7afc048398f266f42368032d22e2155b93 /src/subprocess.cc | |
parent | 4c55257d930bb16d21dc2a1aad6b122b107ec88f (diff) | |
download | Ninja-13adc40187c21ef1dbba0b46cc865ebdfa2ab4ea.zip Ninja-13adc40187c21ef1dbba0b46cc865ebdfa2ab4ea.tar.gz Ninja-13adc40187c21ef1dbba0b46cc865ebdfa2ab4ea.tar.bz2 |
fix compilation error on Mac 10.5
std::vector<>::data() does not exist
Diffstat (limited to 'src/subprocess.cc')
-rw-r--r-- | src/subprocess.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subprocess.cc b/src/subprocess.cc index cef0ad3..a4957ad 100644 --- a/src/subprocess.cc +++ b/src/subprocess.cc @@ -154,7 +154,7 @@ void SubprocessSet::DoWork() { } } - int ret = poll(fds.data(), fds.size(), -1); + int ret = poll(&fds.front(), fds.size(), -1); if (ret == -1) { if (errno != EINTR) perror("ninja: poll"); |