From 3b4a15bd4827fa9cb128055776ba782d07e9c258 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 24 Jan 2017 06:22:02 -0500 Subject: build-remote: Use futimes instead of futimens on APPLE --- src/build-remote/build-remote.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/build-remote/build-remote.cc') 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 #include #include +if __APPLE__ +#include +#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; -- cgit 1.4.1