about summary refs log tree commit diff
path: root/src/build-remote
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2017-01-24T11·22-0500
committerShea Levy <shea@shealevy.com>2017-01-24T11·22-0500
commit3b4a15bd4827fa9cb128055776ba782d07e9c258 (patch)
tree55905c6e5ee672b36040ac5c74d4e444df82707d /src/build-remote
parente5641dfe1e9f8afde21939b62d5b2daea3a50241 (diff)
build-remote: Use futimes instead of futimens on APPLE
Diffstat (limited to 'src/build-remote')
-rw-r--r--src/build-remote/build-remote.cc7
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;