1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 12:06: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));
      |                     ~~~~~~~~~~~~~~~~~~^
This commit is contained in:
Jami Kettunen 2025-10-01 22:19:08 +03:00
parent 251479bdda
commit 140b08ae3e

View file

@ -18,6 +18,7 @@
#include <boost/unordered/unordered_flat_set.hpp> #include <boost/unordered/unordered_flat_set.hpp>
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <queue> #include <queue>
#include <thread>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>