repl.cc: Check for HAVE_BOEHMGC

Fixes #3906.
This commit is contained in:
Eelco Dolstra 2020-08-06 11:40:41 +02:00
parent 3321b2bc65
commit 59067f0f58

View file

@ -33,12 +33,17 @@ extern "C" {
#include "command.hh"
#include "finally.hh"
#if HAVE_BOEHMGC
#define GC_INCLUDE_NEW
#include <gc/gc_cpp.h>
#endif
namespace nix {
struct NixRepl : gc
struct NixRepl
#if HAVE_BOEHMGC
: gc
#endif
{
string curDir;
std::unique_ptr<EvalState> state;