aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/optimise-store.cc
diff options
context:
space:
mode:
authorLily Ballard <lily@ballards.net>2024-10-20 19:53:57 -0700
committerLily Ballard <lily@ballards.net>2024-10-20 22:08:35 -0700
commit65551175e34ef501ef927a297bddd805a634172e (patch)
tree7c1017097306e4bb6e067ea1c91ac9466c615a8c /src/libstore/optimise-store.cc
parent068f4b147d589f2a219ba917537b53a56089c1ba (diff)
libstore: add missing #include on darwin
optimise-store.cc used std::regex on darwin, but forgot to include the header. This probably compiled due to the precompiled headers file, but it caused errors in the editor. Change-Id: I23297c08cb66d44e4d4f303560f46e4adc7d5a43
Diffstat (limited to 'src/libstore/optimise-store.cc')
-rw-r--r--src/libstore/optimise-store.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc
index 14381b6e0..31cb3d303 100644
--- a/src/libstore/optimise-store.cc
+++ b/src/libstore/optimise-store.cc
@@ -9,6 +9,9 @@
#include <unistd.h>
#include <errno.h>
+#if __APPLE__
+#include <regex>
+#endif
namespace nix {