mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
build-remote: Use futimes instead of futimens on APPLE
This commit is contained in:
parent
e5641dfe1e
commit
3b4a15bd48
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
if __APPLE__
|
||||||
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "shared.hh"
|
#include "shared.hh"
|
||||||
#include "pathlocks.hh"
|
#include "pathlocks.hh"
|
||||||
|
@ -225,7 +228,11 @@ int main (int argc, char * * argv)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if __APPLE__
|
||||||
|
futimes(bestSlotLock.get(), NULL);
|
||||||
|
#else
|
||||||
futimens(bestSlotLock.get(), NULL);
|
futimens(bestSlotLock.get(), NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
lock = -1;
|
lock = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue