mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
libstore: Include missing header to fix compile with libc++ 20
https://en.cppreference.com/w/cpp/thread.html
src/libstore/gc.cc:121:39: error: no member named 'sleep_for' in namespace 'std::this_thread'
121 | std::this_thread::sleep_for(std::chrono::milliseconds(100));
| ~~~~~~~~~~~~~~~~~~^
(cherry picked from commit 140b08ae3e)
This commit is contained in:
parent
264cc2e2b2
commit
9259a07e23
1 changed files with 1 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include <random>
|
||||
|
||||
#include <climits>
|
||||
#include <thread>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue