From 3b4a15bd4827fa9cb128055776ba782d07e9c258 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 24 Jan 2017 06:22:02 -0500 Subject: [PATCH] build-remote: Use futimes instead of futimens on APPLE --- src/build-remote/build-remote.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc index 98ccc3ddc..153a91562 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;