diff options
author | Shea Levy <shea@shealevy.com> | 2017-01-24T11·22-0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2017-01-24T11·22-0500 |
commit | 3b4a15bd4827fa9cb128055776ba782d07e9c258 (patch) | |
tree | 55905c6e5ee672b36040ac5c74d4e444df82707d /src | |
parent | e5641dfe1e9f8afde21939b62d5b2daea3a50241 (diff) |
build-remote: Use futimes instead of futimens on APPLE
Diffstat (limited to 'src')
-rw-r--r-- | src/build-remote/build-remote.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc index 98ccc3ddc377..153a9156278f 100644 --- a/src/build-remote/build-remote.cc +++ b/src/build-remote/build-remote.cc @@ -5,6 +5,9 @@ #include <memory> #include <tuple> #include <iomanip> +if __APPLE__ +#include <sys/time.h> +#endif #include "shared.hh" #include "pathlocks.hh" @@ -225,7 +228,11 @@ int main (int argc, char * * argv) break; } +#if __APPLE__ + futimes(bestSlotLock.get(), NULL); +#else futimens(bestSlotLock.get(), NULL); +#endif lock = -1; |