aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/repl.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index e6c811a7b..49418add2 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -32,6 +32,9 @@ extern "C" {
#include "command.hh"
#include "finally.hh"
+#define GC_INCLUDE_NEW
+#include <gc/gc_cpp.h>
+
namespace nix {
#define ESC_RED "\033[31m"
@@ -42,7 +45,7 @@ namespace nix {
#define ESC_CYA "\033[36m"
#define ESC_END "\033[0m"
-struct NixRepl
+struct NixRepl : gc
{
string curDir;
EvalState state;