Skip to content

Commit

Permalink
build-remote: Use futimes instead of futimens on APPLE
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Jan 24, 2017
1 parent e5641df commit 3b4a15b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/build-remote/build-remote.cc
Expand Up @@ -5,6 +5,9 @@
#include <memory>
#include <tuple>
#include <iomanip>
if __APPLE__
#include <sys/time.h>
#endif

#include "shared.hh"
#include "pathlocks.hh"
Expand Down Expand Up @@ -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;

Expand Down

3 comments on commit 3b4a15b

@domenkozar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shlevy
Copy link
Member Author

@shlevy shlevy commented on 3b4a15b Jan 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

@domenkozar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.