diff options
Diffstat (limited to 'third_party/nix/src')
-rw-r--r-- | third_party/nix/src/nix/repl.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/repl.cc b/third_party/nix/src/nix/repl.cc index 9431b5b60f55..823bb3b88ca5 100644 --- a/third_party/nix/src/nix/repl.cc +++ b/third_party/nix/src/nix/repl.cc @@ -22,6 +22,9 @@ #include "libutil/finally.hh" #include "nix/command.hh" +#define GC_INCLUDE_NEW +#include <gc/gc_cpp.h> + namespace nix { #define ESC_RED "\033[31m" @@ -32,7 +35,7 @@ namespace nix { #define ESC_CYA "\033[36m" #define ESC_END "\033[0m" -struct NixRepl { +struct NixRepl : gc { std::string curDir; EvalState state; Bindings* autoArgs; |