1
1
Fork 0
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:
Jami Kettunen 2025-10-01 22:19:08 +03:00 committed by Jon Hermansen
parent 264cc2e2b2
commit 9259a07e23

View file

@ -22,6 +22,7 @@
#include <random>
#include <climits>
#include <thread>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>